void-packages/srcpkgs/argon2/template
Piraty 4e46d5c283 argon2: add upstream patches
* Wait for already running threads if a thread creation failed.
* use explicit_bzero() to clear memory
2019-06-19 01:07:42 +02:00

33 lines
889 B
Bash

# Template file for 'argon2'
pkgname=argon2
version=20171227
revision=4
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"
}
}