main/argon2: fix pkgconfig version

Closes !1322
This commit is contained in:
Leo 2019-11-16 17:51:42 +01:00 committed by Kevin Daudt
parent 357a1791e9
commit 8bb5586fea

View File

@ -4,7 +4,7 @@
pkgname=argon2
_pkgname=phc-winner-argon2
pkgver=20190702
pkgrel=0
pkgrel=1
pkgdesc="The password hash Argon2, winner of PHC"
url="https://github.com/P-H-C/phc-winner-argon2"
arch="all"
@ -15,17 +15,14 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/P-H-C/$_pkgname/archive/$pkg
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
make OPTTARGET=none
make OPTTARGET=none ARGON2_VERSION=$pkgver
}
check() {
cd "$builddir"
make OPTTARGET=none test
}
package() {
cd "$builddir"
make OPTTARGET=none LIBRARY_REL=lib DESTDIR="$pkgdir" install
}