2014-12-11 20:09:15 +00:00
|
|
|
# Template file for 'b2sum'
|
|
|
|
pkgname=b2sum
|
|
|
|
version=20140114
|
2015-04-13 09:38:56 +00:00
|
|
|
revision=3
|
|
|
|
wrksrc="blake2_code_${version}"
|
|
|
|
build_wrksrc=b2sum
|
|
|
|
build_pie=yes
|
2014-12-11 20:09:15 +00:00
|
|
|
build_style=gnu-makefile
|
|
|
|
hostmakedepends="unzip"
|
|
|
|
short_desc="Compute BLAKE2 cryptographic hash"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="Public Domain"
|
|
|
|
homepage="https://blake2.net/"
|
|
|
|
distfiles="https://blake2.net/blake2_code_${version}.zip"
|
|
|
|
checksum=456e6ac99ed4661ef8502526b0927f790699d232fbaf5b0ddbe3a64cc8d612e9
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2014-12-11 20:12:06 +00:00
|
|
|
i686*|x86_64*) _dir=../sse; CFLAGS+=" -msse2";;
|
2014-12-11 20:09:15 +00:00
|
|
|
*) _dir=../ref;;
|
|
|
|
esac
|
|
|
|
${CC} -std=c99 ${CFLAGS} -o b2sum *.c ${_dir}/blake*.c -I${_dir} ${LDFLAGS}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vbin b2sum
|
|
|
|
}
|