void-packages/srcpkgs/argon2/template

34 lines
875 B
Bash

# Template file for 'argon2'
pkgname=argon2
version=20190702
revision=3
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=daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c
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"
vmove usr/lib/pkgconfig
}
}