signify: unbreak build (#1779)

This commit is contained in:
beefcurtains 2015-06-24 09:26:39 +00:00
parent b32ad73deb
commit 880c0bab41
2 changed files with 24 additions and 3 deletions

View File

@ -0,0 +1,13 @@
#ifndef __GLIBC__
/* sys/cdefs.h stubs for musl */
#ifndef __BEGIN_DECLS
#define __BEGIN_DECLS
#define __END_DECLS
#endif
#define __ASMNAME(x) "" x
#include <sys/types.h>
#endif

View File

@ -1,7 +1,7 @@
# Template file for 'signify'
pkgname=signify
version=20141230
revision=1
revision=2
build_style=gnu-makefile
short_desc="OpenBSD cryptographic signing and verification tool"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
@ -12,9 +12,17 @@ checksum=11c0a1ac0ca8075d2f00036f8de53a213346c4b2ecf44dacedc60d160569f6b2
wrksrc="${pkgname}-portable-${version}"
pre_build() {
sed -i 's|^mandir=${prefix}/man|mandir=${prefix}/share/man|g' Makefile
sed -i "s|^CC=gcc|CC=$CC|g;s|CFLAGS=|CFLAGS=$CFLAGS -pie |g" Makefile
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