# Template file for 'signify' pkgname=signify version=20141230 revision=3 wrksrc="signify-portable-${version}" build_style=gnu-makefile short_desc="OpenBSD cryptographic signing and verification tool" maintainer="Orphaned " license="ISC" homepage="http://www.tedunangst.com/flak/post/signify" distfiles="${SOURCEFORGE_SITE}/slackdepot/signify/signify-portable-${version}.tar.bz2" checksum=11c0a1ac0ca8075d2f00036f8de53a213346c4b2ecf44dacedc60d160569f6b2 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 sed -n '/Copyright/,/PERFORMANCE/p' signify.c > LICENSE vlicense LICENSE }