2018-03-12 21:05:14 +01:00
|
|
|
# Template file for 'argon2'
|
|
|
|
pkgname=argon2
|
|
|
|
version=20171227
|
2018-03-25 23:08:19 +02:00
|
|
|
revision=2
|
2018-03-12 21:05:14 +01:00
|
|
|
wrksrc=phc-winner-argon2-${version}
|
|
|
|
build_style=gnu-makefile
|
|
|
|
make_use_env=yes
|
2018-03-25 23:08:19 +02:00
|
|
|
make_build_args="OPTTARGET=none"
|
|
|
|
make_check_args="OPTTARGET=none"
|
|
|
|
make_check_target="test"
|
2018-03-12 21:05:14 +01:00
|
|
|
short_desc="Password hashing function"
|
|
|
|
maintainer="Piraty <piraty1@inbox.ru>"
|
|
|
|
license="CC0 1.0 Universal, Apache 2.0"
|
|
|
|
homepage="https://github.com/P-H-C/phc-winner-argon2"
|
|
|
|
distfiles="https://github.com/P-H-C/phc-winner-argon2/archive/${version}.tar.gz"
|
|
|
|
checksum=eaea0172c1f4ee4550d1b6c9ce01aab8d1ab66b4207776aa67991eb5872fdcd8
|
|
|
|
|
|
|
|
libargon2_package() {
|
|
|
|
short_desc+="Password hashing library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libargon2-devel_package() {
|
|
|
|
short_desc+="Password hashing library - development files"
|
|
|
|
depends="libargon2>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|