aboutsummaryrefslogtreecommitdiffstats
path: root/libsha2
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libsha2/PKGBUILD19
1 files changed, 13 insertions, 6 deletions
diff --git a/libsha2/PKGBUILD b/libsha2/PKGBUILD
index 7a1649f..aeed01c 100644
--- a/libsha2/PKGBUILD
+++ b/libsha2/PKGBUILD
@@ -1,7 +1,7 @@
-# Maintainer: Mattias Andrée <`base64 -d`(bWF0dGlhcy5hbmRyZWU)@protonmail.com>
+# Maintainer: Mattias Andrée <m@`base64 -d`(bWFhbmRyZWU).se>
pkgname=libsha2
-pkgver=1.1.1
+pkgver=1.1.2
pkgrel=1
pkgdesc="SHA-2-family hashing library"
arch=(i686 x86_64)
@@ -11,19 +11,26 @@ depends=()
checkdepends=()
makedepends=()
source=(libsha2-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
-sha256sums=(66f5b5335f298d8bc5493d467264e02cd523b2325cf15066fcc3280f37f53340)
+sha256sums=(14470efbb2987e4be57d0c69635f8dedba11eac7ccece5b1a4a41458c180b765)
+
+_config=config-portable.mk
+if test "$(uname -m)" = x86_64; then
+ _config=config-x86.mk
+elif test "$(uname -m)" = aarch64; then
+ _config=config-armv8.mk
+fi
build() {
cd "$srcdir/$pkgname"
- make PREFIX=/usr
+ make CONFIGFILE="${_config}" PREFIX=/usr
}
check() {
cd "$srcdir/$pkgname"
- make check
+ make CONFIGFILE="${_config}" CHECK_FLAGS=skip-huge check
}
package() {
cd "$srcdir/$pkgname"
- make PREFIX=/usr DESTDIR="$pkgdir" install
+ make CONFIGFILE="${_config}" PREFIX=/usr DESTDIR="$pkgdir" install
}