summaryrefslogtreecommitdiff
path: root/system/argon2
diff options
context:
space:
mode:
Diffstat (limited to 'system/argon2')
-rw-r--r--system/argon2/APKBUILD13
1 files changed, 7 insertions, 6 deletions
diff --git a/system/argon2/APKBUILD b/system/argon2/APKBUILD
index 7a7331221..14427ad12 100644
--- a/system/argon2/APKBUILD
+++ b/system/argon2/APKBUILD
@@ -4,8 +4,8 @@
pkgname=argon2
_pkgname=phc-winner-argon2
pkgver=20190702
-pkgrel=0
-pkgdesc="Password hashing function Argon2"
+pkgrel=2
+pkgdesc="Password hashing library"
url="https://github.com/P-H-C/phc-winner-argon2"
arch="all"
license="Apache-2.0 AND CC0-1.0"
@@ -18,19 +18,20 @@ builddir="$srcdir/$_pkgname-$pkgver"
build() {
# musl >= 1.1.20 has explicit_bzero for better security
export CFLAGS="$CFLAGS -DHAVE_EXPLICIT_BZERO=1"
- make OPTTARGET=none
+ make OPTTARGET=none ARGON2_VERSION=$pkgver
}
check() {
- make OPTTARGET=none test
+ make OPTTARGET=none ARGON2_VERSION=$pkgver test
}
package() {
# pkgconfig file has it in /usr/lib...
sed -i 's#libdir=${prefix}/lib#libdir=/lib#' "$builddir"/libargon2.pc
- make OPTTARGET=none DESTDIR="$pkgdir" LIBRARY_REL=lib install
+ make OPTTARGET=none ARGON2_VERSION=$pkgver DESTDIR="$pkgdir" LIBRARY_REL=lib install
# ...but cryptsetup needs this in /lib for early-boot
- mv "$pkgdir"/usr/lib "$pkgdir"/
+ mkdir "$pkgdir"/lib
+ mv "$pkgdir"/usr/lib/lib* "$pkgdir"/lib
}
sha512sums="0a4cb89e8e63399f7df069e2862ccd05308b7652bf4ab74372842f66bcc60776399e0eaf979a7b7e31436b5e6913fe5b0a6949549d8c82ebd06e0629b106e85f argon2-20190702.tar.gz"