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";
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/";
choco install dotnet4.5.1;
choco install wixtoolset;
cargo install cargo-wix;
cargo wix init;

View File

@ -8,7 +8,7 @@ provides=('bottom')
makedepends=('cargo')
arch=('x86_64')
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')
sha512sums=('$hash')
@ -16,8 +16,11 @@ build() {
cargo build --release --locked
}
package() {
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
cd "./target/release"
install -Dm755 btm "$pkgdir/usr/bin/btm"
check() {
cargo test --release --locked
}
package() {
install -Dm755 target/release/btm "$pkgdir/usr/bin/btm"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}