summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Lucas2020-10-28 02:29:53 -0400
committerJean Lucas2020-10-28 02:29:53 -0400
commit33d1e003d0e18c0e10e95bb27a9585f185c00fd9 (patch)
tree963b8a3939e5ee6f001b149af3ffcb352c048505
parentd1f58e8cd517dd835d7e012ee1f305d4e0fc6f7a (diff)
downloadaur-33d1e003d0e18c0e10e95bb27a9585f185c00fd9.tar.gz
0.4.1
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD28
2 files changed, 19 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 123a0026a0e..27554e855be 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = bb-rs
pkgdesc = Simple process viewer in Rust
- pkgver = 0.4.0
+ pkgver = 0.4.1
pkgrel = 1
url = https://nessuent.xyz/bb.html
arch = x86_64
@@ -8,8 +8,8 @@ pkgbase = bb-rs
license = GPL3
makedepends = rust
depends = gcc-libs
- source = bb-rs-0.4.0.tar.gz::https://github.com/epilys/bb/archive/0.4.0.tar.gz
- sha512sums = f189fd77603d8e4335a41acc27bf017ab12f0ba024c14bf930b8ba1744f0bd070635ba9c09fd39b7b1f37f0e9d38f074a782bf38ff6d05da468ff6df735b65ce
+ source = bb-rs-0.4.1.tar.gz::https://github.com/epilys/bb/archive/0.4.1.tar.gz
+ sha512sums = 89c036a195801a3795768203c6af0e68d537002c57571720dd59f4afdc5a0b52faad734bc86674cb8c88e31c3a1e943c4d36321344ac8a78c6542020039e30a5
pkgname = bb-rs
diff --git a/PKGBUILD b/PKGBUILD
index 049d32abdc9..83ba3528836 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Jean Lucas <jean@4ray.co>
pkgname=bb-rs
-pkgver=0.4.0
+_pkgname=${pkgname/-rs}
+pkgver=0.4.1
pkgrel=1
pkgdesc='Simple process viewer in Rust'
arch=(x86_64 aarch64)
@@ -9,26 +10,29 @@ url=https://nessuent.xyz/bb.html
license=(GPL3)
depends=(gcc-libs)
makedepends=(rust)
-source=($pkgname-$pkgver.tar.gz::https://github.com/epilys/bb/archive/$pkgver.tar.gz)
-sha512sums=('f189fd77603d8e4335a41acc27bf017ab12f0ba024c14bf930b8ba1744f0bd070635ba9c09fd39b7b1f37f0e9d38f074a782bf38ff6d05da468ff6df735b65ce')
+source=($pkgname-$pkgver.tar.gz::https://github.com/epilys/$_pkgname/archive/$pkgver.tar.gz)
+sha512sums=('89c036a195801a3795768203c6af0e68d537002c57571720dd59f4afdc5a0b52faad734bc86674cb8c88e31c3a1e943c4d36321344ac8a78c6542020039e30a5')
prepare() {
- # Fixes build on AArch64
- [ $CARCH = aarch64 ] && sed 's#i8#u8#g' -i bb-$pkgver/src/ui.rs
+ if [[ $CARCH = aarch64 ]]; then
+ # Fixes build on AArch64
+ sed 's#i8#u8#g' -i $_pkgname-$pkgver/src/ui.rs
+ else true # Fixes build in chroot on x86_64
+ fi
}
build() {
- cd bb-$pkgver
- cargo build --release
+ cd $_pkgname-$pkgver
+ cargo build --release
}
check() {
- cd bb-$pkgver
- cargo test --release
+ cd $_pkgname-$pkgver
+ cargo test --release
}
package() {
- cd bb-$pkgver
- install -D target/release/bb -t "$pkgdir"/usr/bin
- install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/bb
+ cd $_pkgname-$pkgver
+ install -D target/release/$_pkgname -t "$pkgdir"/usr/bin
+ install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
}