mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
signify: unbreak build (#1779)
This commit is contained in:
parent
b32ad73deb
commit
880c0bab41
2 changed files with 24 additions and 3 deletions
13
srcpkgs/signify/files/void.h
Normal file
13
srcpkgs/signify/files/void.h
Normal 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
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'signify'
|
# Template file for 'signify'
|
||||||
pkgname=signify
|
pkgname=signify
|
||||||
version=20141230
|
version=20141230
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
short_desc="OpenBSD cryptographic signing and verification tool"
|
short_desc="OpenBSD cryptographic signing and verification tool"
|
||||||
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
|
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
|
||||||
|
@ -12,9 +12,17 @@ checksum=11c0a1ac0ca8075d2f00036f8de53a213346c4b2ecf44dacedc60d160569f6b2
|
||||||
wrksrc="${pkgname}-portable-${version}"
|
wrksrc="${pkgname}-portable-${version}"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
sed -i 's|^mandir=${prefix}/man|mandir=${prefix}/share/man|g' Makefile
|
sed -e 's|^mandir=${prefix}/man|mandir=${prefix}/share/man|g' \
|
||||||
sed -i "s|^CC=gcc|CC=$CC|g;s|CFLAGS=|CFLAGS=$CFLAGS -pie |g" Makefile
|
-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() {
|
post_install() {
|
||||||
vdoc README
|
vdoc README
|
||||||
vdoc BACKGROUND
|
vdoc BACKGROUND
|
||||||
|
|
Loading…
Add table
Reference in a new issue