4 pkgdesc="dwm with a dark blue theme"
5 url="http://dwm.suckless.org"
8 depends=('libx11' 'acpi')
9 makedepends=('mercurial' 'sed')
15 _hgroot='http://hg.suckless.org/'
21 # update the repo, else clone a new one
22 if [ -d $_hgrepo ]; then
27 hg clone ${_hgroot}/${_hgrepo}
31 # add correct settings to config.mk
32 sed -i "s|^PREFIX =.*|PREFIX = /usr|" config.mk
33 sed -i "s|^X11INC =.*|X11INC = /usr/include/X11|" config.mk
34 sed -i "s|^X11LIB =.*|X11LIB = /usr/lib/X11|" config.mk
37 wget http://www.sfu.ca/~paa4/code/dwm-par.patch.tar.gz
38 tar xvfz dwm-par.patch.tar.gz
39 patch config.def.h config.def.h.patch
42 make PREFIX=$startdir/pkg/usr install
44 mkdir -p $startdir/pkg/usr/share/licenses/dwm
45 cp LICENSE $startdir/pkg/usr/share/licenses/dwm