ci: update PKGBUILD template as per suggestions

This commit is contained in:
ClementTsang 2020-08-22 23:41:41 -04:00
parent 5e0ab22645
commit 279504e401
2 changed files with 6 additions and 4 deletions

View file

@ -56,7 +56,6 @@ before_deploy:
zip bottom_i686-pc-windows-msvc.zip "btm.exe"; zip bottom_i686-pc-windows-msvc.zip "btm.exe";
python "./deployment/windows/choco/choco_packager.py" "bottom_i686-pc-windows-msvc.zip" "bottom_x86_64-pc-windows-msvc.zip" $TRAVIS_TAG "./deployment/windows/choco/bottom.nuspec.template" "./deployment/windows/choco/chocolateyinstall.ps1.template"; python "./deployment/windows/choco/choco_packager.py" "bottom_i686-pc-windows-msvc.zip" "bottom_x86_64-pc-windows-msvc.zip" $TRAVIS_TAG "./deployment/windows/choco/bottom.nuspec.template" "./deployment/windows/choco/chocolateyinstall.ps1.template";
zip choco.zip "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/"; zip choco.zip "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/";
choco install dotnet4.5.1;
choco install wixtoolset; choco install wixtoolset;
cargo install cargo-wix; cargo install cargo-wix;
cargo wix init; cargo wix init;

View file

@ -8,7 +8,7 @@ provides=('bottom')
makedepends=('cargo') makedepends=('cargo')
arch=('x86_64') arch=('x86_64')
url="https://github.com/ClementTsang/bottom" url="https://github.com/ClementTsang/bottom"
source=("$pkgname-$pkgver.tar.gz::https://github.com/ClementTsang/bottom/releases/download/$pkgver/bottom_required_files.tar.gz") source=("$pkgname-$pkgver.tar.gz::https://github.com/ClementTsang/bottom/archive/$pkgver.tar.gz")
license=('MIT') license=('MIT')
sha512sums=('$hash') sha512sums=('$hash')
@ -16,8 +16,11 @@ build() {
cargo build --release --locked cargo build --release --locked
} }
check() {
cargo test --release --locked
}
package() { package() {
install -Dm755 target/release/btm "$pkgdir/usr/bin/btm"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
cd "./target/release"
install -Dm755 btm "$pkgdir/usr/bin/btm"
} }