aboutsummaryrefslogtreecommitdiffstats
path: root/libsha1/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libsha1/PKGBUILD')
-rw-r--r--libsha1/PKGBUILD17
1 files changed, 12 insertions, 5 deletions
diff --git a/libsha1/PKGBUILD b/libsha1/PKGBUILD
index 104e537..2128ce9 100644
--- a/libsha1/PKGBUILD
+++ b/libsha1/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Mattias Andrée <m@`base64 -d`(bWFhbmRyZWU).se>
pkgname=libsha1
-pkgver=1.1.2
+pkgver=1.1.3
pkgrel=1
pkgdesc="SHA-1 and SHA-0 hashing library"
arch=(i686 x86_64)
@@ -11,19 +11,26 @@ depends=()
checkdepends=()
makedepends=()
source=(libsha1-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
-sha256sums=(b2fbe344efe7cd0f14ad0cdbab28847ac7b4c4c86bf83583e87fc028d7a06ea8)
+sha256sums=(01b801bee3d89a3647f0b6302664852463b9f6d6be3afc0ef878d16c1ba6fef7)
+
+_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
}
package() {
cd "$srcdir/$pkgname"
- make PREFIX=/usr DESTDIR="$pkgdir" install
+ make CONFIGFILE="${_config}" PREFIX=/usr DESTDIR="$pkgdir" install
}