34 lines
889 B
Bash
34 lines
889 B
Bash
# Template file for 'argon2'
|
|
pkgname=argon2
|
|
version=20171227
|
|
revision=3
|
|
wrksrc="phc-winner-argon2-${version}"
|
|
build_style=gnu-makefile
|
|
make_use_env=yes
|
|
make_build_args="OPTTARGET=none"
|
|
make_check_args="OPTTARGET=none"
|
|
make_check_target=test
|
|
short_desc="Password hashing function"
|
|
maintainer="Piraty <piraty1@inbox.ru>"
|
|
license="CC0-1.0, 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"
|
|
}
|
|
}
|