ports

recipes for building multiple softwares
git clone git://z3bra.org/ports
Log | Files | Refs

commit 37a1f19735de2be74593a3648bfa2356b0a63191
parent 042b805c1dc301338d44038a7e235f4227fc2217
Author: z3bra <willyatmailoodotorg>
Date:   Sun Aug 16 16:47:48 2015

sbase: new port

Diffstat:
 sbase/makeme                              | 24 ++++++++++++++++++++++++
 sbase/patches/sinit-0.0-pcc-unstrip.patch |  9 +++++++++
 2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/sbase/makeme b/sbase/makeme @@ -0,0 +1,24 @@ +name=sbase +version=0.0 +source=git://git.2f30.org/$name +commit=HEAD + +package() { + if cd $name-$version; then + git reset --hard + git pull + else + git clone $source $name-$version + cd $name-$version + fi + + cat ../patches/*.patch | patch -Np1 + + make CC=$CC LDFLAGS="$LDFLAGS" + make DESTDIR=$WORKDIR/$name \ + PREFIX= \ + MANPREFIX=/share/man \ + install + cd .. + rm -r $name-$version +} diff --git a/sbase/patches/sinit-0.0-pcc-unstrip.patch b/sbase/patches/sinit-0.0-pcc-unstrip.patch @@ -0,0 +1,9 @@ +diff -urN a/config.mk b/config.mk +--- a/config.mk 2015-08-11 23:02:21.627802908 +0200 ++++ b/config.mk 2015-08-11 23:03:22.058805680 +0200 +@@ -15,4 +15,4 @@ + # -lrt might be needed on some systems + CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 + CFLAGS = -std=c99 -Wall -pedantic +-LDFLAGS = -s ++LDFLAGS =