27 lines
707 B
Bash
27 lines
707 B
Bash
# Template file for 'b2sum'
|
|
pkgname=b2sum
|
|
version=20150529
|
|
revision=1
|
|
wrksrc="blake2_code_${version}"
|
|
build_wrksrc=b2sum
|
|
build_pie=yes
|
|
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=30a3140f7747fb67765bcf5f26c85c5e9ec8a168bb31faa2dee93f4cc0b5e813
|
|
|
|
do_build() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*) _dir=../sse; CFLAGS+=" -msse2";;
|
|
*) _dir=../ref;;
|
|
esac
|
|
${CC} -std=c99 ${CFLAGS} -o b2sum *.c ${_dir}/blake*.c -I${_dir} ${LDFLAGS}
|
|
}
|
|
|
|
do_install() {
|
|
vbin b2sum
|
|
}
|