2014-12-11 21:09:15 +01:00
|
|
|
# Template file for 'b2sum'
|
|
|
|
pkgname=b2sum
|
2028-08-29 18:47:08 +02:00
|
|
|
version=20150531
|
2015-05-30 15:00:44 +02:00
|
|
|
revision=1
|
2015-04-13 11:38:56 +02:00
|
|
|
wrksrc="blake2_code_${version}"
|
|
|
|
build_wrksrc=b2sum
|
|
|
|
build_pie=yes
|
2014-12-11 21:09:15 +01: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"
|
2028-08-29 18:47:08 +02:00
|
|
|
checksum=37168711cddb349e7462bcc4874992a8e1c66de2318a20507b498be2d7c7d1e7
|
2014-12-11 21:09:15 +01:00
|
|
|
|
|
|
|
do_build() {
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2014-12-11 21:12:06 +01:00
|
|
|
i686*|x86_64*) _dir=../sse; CFLAGS+=" -msse2";;
|
2014-12-11 21:09:15 +01:00
|
|
|
*) _dir=../ref;;
|
|
|
|
esac
|
|
|
|
${CC} -std=c99 ${CFLAGS} -o b2sum *.c ${_dir}/blake*.c -I${_dir} ${LDFLAGS}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vbin b2sum
|
|
|
|
}
|