void-packages/srcpkgs/argon2/template
2018-03-19 04:42:10 +01:00

30 lines
808 B
Bash

# Template file for 'argon2'
pkgname=argon2
version=20171227
revision=1
wrksrc=phc-winner-argon2-${version}
build_style=gnu-makefile
make_use_env=yes
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"
}
}