void-packages/srcpkgs/reop/template

32 lines
960 B
Bash

# Template file for 'reop'
pkgname=reop
version=2.1.0
revision=2
makedepends="libsodium-devel"
short_desc="Create and verify cryptographic signatures"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="ISC, BSD"
homepage="http://www.tedunangst.com/flak/post/reop"
distfiles="http://www.tedunangst.com/flak/files/reop-${version}.tgz"
checksum=e429c7ff47f130bd465eaa0c23a1783b476bc484d32793592b54a568b55e49af
pre_fetch() {
# 301 redirect to https://www.tedunangst.com/flak/files/reop-2.1.0.tgz
# [...]
# Certificate verification failed for /C=US/ST=PA/O=tedunangst.com/CN=www.tedunangst.com/emailAddress=tedu@tedunangst.com
export SSL_NO_VERIFY_PEER=1
}
do_build() {
make -f GNUmakefile \
CC="$CC" CFLAGS="$CFLAGS" \
CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include -Iother ${CPPFLAGS}" \
LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lsodium ${LDFLAGS}"
sed -n '2,14p' reop.c | cut -b4- > LICENSE
}
do_install() {
vbin reop
vman reop.1
vlicense LICENSE
}