aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-14 09:21:36 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-19 13:16:24 +0200
commite3fca245193e6da4fd8d842fdc2e2c8353529eeb (patch)
treef6d89b8fb4477392c098adb314a8fa5d0843df5c
parent0a71d7e0d129bf4ac44669846b1ce88d4b7ca108 (diff)
downloadaports-e3fca245193e6da4fd8d842fdc2e2c8353529eeb.tar.bz2
aports-e3fca245193e6da4fd8d842fdc2e2c8353529eeb.tar.xz
main/argon2: provide pc: file
fixes #10572 (cherry picked from commit f567a84abd86ddcc795647cee19a8edf9268bd4e)
-rw-r--r--main/argon2/APKBUILD12
-rw-r--r--main/argon2/libargon2.pc12
2 files changed, 21 insertions, 3 deletions
diff --git a/main/argon2/APKBUILD b/main/argon2/APKBUILD
index 339a753cf7..073d977e27 100644
--- a/main/argon2/APKBUILD
+++ b/main/argon2/APKBUILD
@@ -4,13 +4,15 @@
pkgname=argon2
_pkgname=phc-winner-argon2
pkgver=20171227
-pkgrel=1
+pkgrel=2
pkgdesc="The password hash Argon2, winner of PHC"
url="https://github.com/P-H-C/phc-winner-argon2"
arch="all"
license="Apache-2.0 CC0-1.0"
subpackages="$pkgname-dev $pkgname-dev $pkgname-libs"
-source="$pkgname-$pkgver.tar.gz::https://github.com/P-H-C/$_pkgname/archive/$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/P-H-C/$_pkgname/archive/$pkgver.tar.gz
+ libargon2.pc
+ "
builddir="$srcdir/$_pkgname-$pkgver"
build() {
@@ -26,6 +28,10 @@ check() {
package() {
cd "$builddir"
make OPTTARGET=none DESTDIR="$pkgdir" install
+
+ install -Dm0644 libargon2.pc "$pkgdir"/usr/lib/pkgconfig/libargon2.pc
+ sed -i -e "s/@UPSTREAM_VER@/${pkgver}/" "$pkgdir"/usr/lib/pkgconfig/libargon2.pc
}
-sha512sums="9c9e1a3905e61ac6913d1e073c104477e419ddd0506adc4487e88e98d19165ed8901fe8bb11246ed0cc71b3523c190da9692d5926642f86be09c3e67510afe4d argon2-20171227.tar.gz"
+sha512sums="9c9e1a3905e61ac6913d1e073c104477e419ddd0506adc4487e88e98d19165ed8901fe8bb11246ed0cc71b3523c190da9692d5926642f86be09c3e67510afe4d argon2-20171227.tar.gz
+299d72d3cd6a9d8167e69b2cefc8f854e1c3abd0897e44acdc78bb5c6fdb62eee6b75e2deeb51f9c46bda543b61268fe7b89adc274c624609d4cec39294b81d8 libargon2.pc"
diff --git a/main/argon2/libargon2.pc b/main/argon2/libargon2.pc
new file mode 100644
index 0000000000..56ce2dc0fa
--- /dev/null
+++ b/main/argon2/libargon2.pc
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: libargon2
+Description: Development libraries for libargon2
+Version: @UPSTREAM_VER@
+Libs: -L${libdir} -largon2 -lrt -ldl
+Cflags:
+URL: https://github.com/P-H-C/phc-winner-argon2
+