summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Lucas2020-01-18 19:25:14 -0500
committerJean Lucas2020-01-18 19:25:14 -0500
commitd1f58e8cd517dd835d7e012ee1f305d4e0fc6f7a (patch)
tree4ea2637fd4ae3c8c62b6275efc1192fd09c91c20
parente6b9101b2fa893aeb733514012bb645692516ba0 (diff)
downloadaur-d1f58e8cd517dd835d7e012ee1f305d4e0fc6f7a.tar.gz
AArch64 support
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD7
2 files changed, 7 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3312f9513f2..123a0026a0e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,6 +4,7 @@ pkgbase = bb-rs
pkgrel = 1
url = https://nessuent.xyz/bb.html
arch = x86_64
+ arch = aarch64
license = GPL3
makedepends = rust
depends = gcc-libs
diff --git a/PKGBUILD b/PKGBUILD
index 571e1f0897b..049d32abdc9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=bb-rs
pkgver=0.4.0
pkgrel=1
pkgdesc='Simple process viewer in Rust'
-arch=(x86_64)
+arch=(x86_64 aarch64)
url=https://nessuent.xyz/bb.html
license=(GPL3)
depends=(gcc-libs)
@@ -12,6 +12,11 @@ makedepends=(rust)
source=($pkgname-$pkgver.tar.gz::https://github.com/epilys/bb/archive/$pkgver.tar.gz)
sha512sums=('f189fd77603d8e4335a41acc27bf017ab12f0ba024c14bf930b8ba1744f0bd070635ba9c09fd39b7b1f37f0e9d38f074a782bf38ff6d05da468ff6df735b65ce')
+prepare() {
+ # Fixes build on AArch64
+ [ $CARCH = aarch64 ] && sed 's#i8#u8#g' -i bb-$pkgver/src/ui.rs
+}
+
build() {
cd bb-$pkgver
cargo build --release