27 lines
691 B
Bash
27 lines
691 B
Bash
# Template file for 'b2sum'
|
|
pkgname=b2sum
|
|
version=20160619
|
|
revision=1
|
|
wrksrc="BLAKE2-${version}"
|
|
build_wrksrc="b2sum"
|
|
build_style=gnu-makefile
|
|
short_desc="Compute BLAKE2 cryptographic hash"
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
license="CC0-1.0"
|
|
homepage="https://blake2.net/"
|
|
distfiles="https://github.com/BLAKE2/BLAKE2/archive/${version}.tar.gz"
|
|
checksum=cbac833ccae56b5c6173dbeaf871aa99b32745cf7a994c7451d4533ecda55633
|
|
|
|
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
|
|
vman b2sum.1
|
|
}
|