void-packages/srcpkgs/signify/template

29 lines
838 B
Bash

# Template file for 'signify'
pkgname=signify
version=20141230
revision=2
build_style=gnu-makefile
short_desc="OpenBSD cryptographic signing and verification tool"
maintainer='Juan RP <xtraeme@voidlinux.eu>'
license="ISC"
homepage="http://www.tedunangst.com/flak/post/signify"
distfiles="${SOURCEFORGE_SITE}/slackdepot/${pkgname}/${pkgname}-portable-${version}.tar.bz2"
checksum=11c0a1ac0ca8075d2f00036f8de53a213346c4b2ecf44dacedc60d160569f6b2
wrksrc="${pkgname}-portable-${version}"
pre_build() {
sed -e 's|^mandir=${prefix}/man|mandir=${prefix}/share/man|g' \
-e 's/^CFLAGS=-O2/override CFLAGS+=-pie/' \
-i Makefile
# Allow building with musl
cp ${FILESDIR}/void.h .
for file in bsd-compat/blf.h bsd-compat/sha2.h ohash.h; do
sed -e '1 i\#include "void.h"' -i $file
done
}
post_install() {
vdoc README
vdoc BACKGROUND
}