diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-08-22 23:41:41 -0400 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-08-22 23:41:41 -0400 |
commit | 279504e4018130f793508f11c94218ac19b4645a (patch) | |
tree | a8b17dfbfec09d292c1eb963577585d5a076e27a /deployment | |
parent | 5e0ab22645dc8d0828a3e758acda87c03ed4104d (diff) |
ci: update PKGBUILD template as per suggestions
Diffstat (limited to 'deployment')
-rw-r--r-- | deployment/linux/arch/PKGBUILD.template | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/deployment/linux/arch/PKGBUILD.template b/deployment/linux/arch/PKGBUILD.template index bf0b2298..ef344605 100644 --- a/deployment/linux/arch/PKGBUILD.template +++ b/deployment/linux/arch/PKGBUILD.template @@ -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 } +check() { + cargo test --release --locked +} + package() { + install -Dm755 target/release/btm "$pkgdir/usr/bin/btm" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" - cd "./target/release" - install -Dm755 btm "$pkgdir/usr/bin/btm" }
\ No newline at end of file |