contrib/argon2/Pkgfile

19 lines
598 B
Plaintext
Raw Normal View History

2019-06-11 23:45:44 +02:00
# Description: The password hash Argon2
# URL: https://github.com/P-H-C/phc-winner-argon2
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:
name=argon2
2019-07-02 08:38:02 +02:00
version=20190702
2019-06-11 23:45:44 +02:00
release=1
2019-07-02 08:38:02 +02:00
source=(https://github.com/P-H-C/phc-winner-argon2/archive/$version/phc-winner-argon2-$version.tar.gz)
2019-06-11 23:45:44 +02:00
build() {
2019-07-02 08:38:02 +02:00
cd phc-winner-$name-$version
# install to /usr/lib directly instead of /usr/lib/x86_64-linux-gnu
sed -e 's/LIBRARY_REL ?= lib\/x86_64-linux-gnu/LIBRARY_REL ?= lib/g' -i Makefile
make
make DESTDIR=$PKG install
sed -e 's/NULL/$version/g' -i $PKG/usr/lib/pkgconfig/libargon2.pc
2019-06-11 23:45:44 +02:00
}