morpheus/pkgs/dwm

12 lines
437 B
Plaintext

build: tinyxlib
url="$mirror/dwm-git.tar.gz"
cd src
wget -c $url
[ -d dwm ] || tar xzf dwm-git.tar.gz
sed -i "s@X11INC = /usr/X11R6/include@X11INC = $libcroot/include @" dwm/config.mk
sed -i "s@X11LIB = /usr/X11R6/lib@X11LIB = $libcroot/lib @" dwm/config.mk
sed -i 's@LDFLAGS = -s ${LIBS}@LDFLAGS = -s ${LIBS} -static @' dwm/config.mk
sed -i "s@CC = cc@CC = $CC@" dwm/config.mk
make -C dwm
make -C dwm DESTDIR=${root} install