morpheus

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

commit a75e5fb30cbdde561385229b5b2519aabe250cff
parent d6587db00b2b641c4fa7beb9156ae69e69c5d740
Author: sin <sin@2f30.org>
Date:   Tue, 18 Feb 2014 17:43:00 +0000

Add dwm

Diffstat:
Apkgs/dwm | 30++++++++++++++++++++++++++++++
Mstage0 | 3++-
2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/pkgs/dwm b/pkgs/dwm @@ -0,0 +1,30 @@ +url=$mirror/dwm-6.0.tar.gz + +fetch() { + wget -c $url -O src/dwm-6.0.tar.gz +} + +unpack() { + cd src + [ -d dwm-6.0 ] || tar xzf dwm-6.0.tar.gz + cd - +} + +build() { + cd src/dwm-6.0 + sed -i "s@X11INC = /usr/X11R6/include@X11INC = $libcroot/include@" config.mk + sed -i "s@X11LIB = /usr/X11R6/lib@X11LIB = $libcroot/lib@" config.mk + sed -i 's@INCS = -I. -I/usr/include -I${X11INC}@INCS = -I. -I${X11INC}@' config.mk + sed -i 's@LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS}@LIBS = -lc -L${X11LIB} -lX11 ${XINERAMALIBS}@' config.mk + sed -i 's@LDFLAGS = -s ${LIBS}@LDFLAGS = -s ${LIBS} -static@' config.mk + sed -i 's@CC = cc@CC = x86_64-linux-musl-gcc@' config.mk + make || return 1 + cd - +} + +install() { + cd src/dwm-6.0 + cp dwm $root/bin + cp dwm.1 $root/share/man/man1 + cd - +} diff --git a/stage0 b/stage0 @@ -31,6 +31,7 @@ packages="crossmusl tinywm xsetroot aewm - terminus" + terminus + dwm" ./pkgbuild $packages