morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit 6c3ee3b0e41342841cbc36ea3a3c9ba69aef04e6
parent 0238d1fafc53427ef2859e8baa96dd54e38f4778
Author: Daniel Bainton <dpb@driftaway.org>
Date:   Wed, 26 Feb 2014 10:35:50 +0200

add abduco

Diffstat:
Apkgs/abduco | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/pkgs/abduco b/pkgs/abduco @@ -0,0 +1,22 @@ +url=git://repo.or.cz/abduco.git + +fetch() { + [ -d src/abduco ] || git clone $url src/abduco +} + +build() { + cd src/abduco + make clean + sed -i "s@PREFIX = /usr/local@PREFIX = /@" config.mk + sed -i "s@INCS = -I. -I/usr/include -I/usr/local/include@INCS = -I. -I$libcroot/include@" config.mk + sed -i "s@LDFLAGS += -L/usr/lib -L/usr/local/lib ${LIBS}@LDFLAGS += -L$libcroot/lib ${LIBS} -static @" config.mk + sed -i 's@CC = cc@CC = x86_64-linux-musl-gcc@' config.mk + make || return 1 + cd - +} + +install() { + cd src/abduco + make DESTDIR="$root" install + cd - +}