diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-01-19 18:22:59 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-01-24 20:26:12 +0100 |
commit | 03f715c930f99e82076d5f2d536933a89b09787e (patch) | |
tree | 01f41d16c874534d498c6dfbedca84e09fa783b3 /testing/argon2 | |
parent | 99d450926da00cbbe3b3bc9375c1510ee487eb92 (diff) | |
download | aports-03f715c930f99e82076d5f2d536933a89b09787e.tar.bz2 aports-03f715c930f99e82076d5f2d536933a89b09787e.tar.xz |
testing/argon2: upgrade to 20171227
Also modernize the entire thing while being here and use a -libs
subpackage instead of providing a libargon2 package.
Diffstat (limited to 'testing/argon2')
-rw-r--r-- | testing/argon2/APKBUILD | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/testing/argon2/APKBUILD b/testing/argon2/APKBUILD index 41397d2b8e..b29b65a033 100644 --- a/testing/argon2/APKBUILD +++ b/testing/argon2/APKBUILD @@ -1,38 +1,31 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> # Contributor: Corey Oliver <coreyjonoliver@gmail.com> # Maintainer: Corey Oliver <coreyjonoliver@gmail.com> pkgname=argon2 _pkgname=phc-winner-argon2 -pkgver=20161029 -_soname=0.0.0 -pkgrel=1 +pkgver=20171227 +pkgrel=0 pkgdesc="The password hash Argon2, winner of PHC" url="https://github.com/P-H-C/phc-winner-argon2" arch="all !armhf" license="Apache-2.0 CC0-1.0" -subpackages="$pkgname-dev libargon2" +subpackages="$pkgname-dev $pkgname-dev $pkgname-libs" source="$pkgname-$pkgver.tar.gz::https://github.com/P-H-C/$_pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$builddir" - make && make test + cd "$builddir" + make OPTTARGET=none } -package() { - cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 - - # A version number is not appended to the shared library file by default, so we do it ourselves - mv "$pkgdir"/usr/lib/libargon2.so "$pkgdir"/usr/lib/libargon2.so.$_soname || return 1 - ln -s libargon2.so.$_soname "$pkgdir"/usr/lib/libargon2.so || return 1 - ln -s libargon2.so.$_soname "$pkgdir"/usr/lib/libargon2.so.${_soname%%.*} || return 1 +check() { + cd "$builddir" + make OPTTARGET=none test } -libargon2() { - pkgdesc="The password hash Argon2 library, winner of PHC" - mkdir -p "$subpkgdir"/usr - mv "$pkgdir"/usr/lib "$subpkgdir"/usr +package() { + cd "$builddir" + make OPTTARGET=none DESTDIR="$pkgdir" install } -md5sums="bd3476cb8eac9d521a4e0e04d653f5a8 argon2-20161029.tar.gz" -sha256sums="fe0049728b946b58b94cc6db89b34e2d050c62325d16316a534d2bedd78cd5e7 argon2-20161029.tar.gz" -sha512sums="e1f947a97e8b5f292dd32a6f1ea0ef3f2e411629218653821886ec4e1d5f8289d5b8f4b8bf0a37e69c344a83b975c695947d6b49fd2001a0e4273bebd4792892 argon2-20161029.tar.gz" + +sha512sums="9c9e1a3905e61ac6913d1e073c104477e419ddd0506adc4487e88e98d19165ed8901fe8bb11246ed0cc71b3523c190da9692d5926642f86be09c3e67510afe4d argon2-20171227.tar.gz" |