commit 0238d1fafc53427ef2859e8baa96dd54e38f4778 parent 7aa00a63fd804acff481a77b9ffd7ec58bb0be44 Author: Daniel Bainton <dpb@driftaway.org> Date: Wed, 26 Feb 2014 10:26:07 +0200 add dvtm Diffstat:
A | pkgs/dvtm | | | 28 | ++++++++++++++++++++++++++++ |
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/pkgs/dvtm b/pkgs/dvtm @@ -0,0 +1,28 @@ +url=http://www.brain-dump.org/projects/dvtm/dvtm-0.10.tar.gz + +fetch() { + wget -c $url -O src/dvtm-0.10.tar.gz +} + +unpack() { + cd src + [ -d dvtm-0.10 ] || tar -xzf dvtm-0.10.tar.gz + cd - +} + +build() { + cd src/dvtm-0.10 + 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 -I$libcroot/include/ncursesw@" 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/dvtm-0.10 + make DESTDIR="$root" install + cd - +} +