aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-03-04 03:22:19 +0000
committerBart Ribbers <bribbers@disroot.org>2022-03-04 06:27:07 +0000
commit940b5bca0255bb47428395592944168bcecf815b (patch)
tree0cbc00e9f581a8382958594077d98e2410e564ce
parent55ef2bc4dc54d3b44198725dff51d53b31ad9348 (diff)
downloadaports-940b5bca0255bb47428395592944168bcecf815b.tar.gz
aports-940b5bca0255bb47428395592944168bcecf815b.tar.bz2
aports-940b5bca0255bb47428395592944168bcecf815b.tar.xz
community/libb2: use fat runtime
libb2 compiles with -mavx otherwise, and cannot run on a lot of cpus
-rw-r--r--community/libb2/APKBUILD17
1 files changed, 14 insertions, 3 deletions
diff --git a/community/libb2/APKBUILD b/community/libb2/APKBUILD
index a5e14ae5ec..18859a5496 100644
--- a/community/libb2/APKBUILD
+++ b/community/libb2/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libb2
pkgver=0.98.1
-pkgrel=1
+pkgrel=2
pkgdesc="C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp"
url="https://blake2.net/"
arch="all"
@@ -11,6 +11,14 @@ subpackages="$pkgname-dev"
source="https://github.com/BLAKE2/libb2/releases/download/v$pkgver/libb2-$pkgver.tar.gz"
build() {
+ case "$CARCH" in
+ x86*)
+ _fat_runtime=yes
+ ;;
+ *)
+ _fat_runtime=no
+ ;;
+ esac
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -18,7 +26,8 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
- --disable-static
+ --disable-static \
+ --enable-fat=$_fat_runtime
make
}
@@ -30,4 +39,6 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="e760972173bb9ff3562843882abbe9042af09da63f37a5706921381be2d64cc4d333aec65e1e676d5a45ace913417536a1dc188c90b394c2f7b9cae654dbb108 libb2-0.98.1.tar.gz"
+sha512sums="
+e760972173bb9ff3562843882abbe9042af09da63f37a5706921381be2d64cc4d333aec65e1e676d5a45ace913417536a1dc188c90b394c2f7b9cae654dbb108 libb2-0.98.1.tar.gz
+"