1 # Contributer: v2punkt0 <v2punkt0@gmail.com>
6 pkgdesc="The latest hg pull of dwm"
7 url="http://dwm.suckless.org"
11 makedepends=('mercurial' 'sed')
17 _hgroot='http://code.suckless.org/hg'
23 # update the repo, else clone a new one
24 if [ -d $_hgrepo ]; then
29 hg clone ${_hgroot}/${_hgrepo}
33 # add correct settings to config.mk
34 sed -i "s|^PREFIX =.*|PREFIX = /usr|" config.mk
35 sed -i "s|^X11INC =.*|X11INC = /usr/include/X11|" config.mk
36 sed -i "s|^X11LIB =.*|X11LIB = /usr/lib/X11|" config.mk
38 msg "Starting build process."
40 make PREFIX=$startdir/pkg/usr install
42 mkdir -p $startdir/pkg/usr/share/licenses/dwm
43 cp LICENSE $startdir/pkg/usr/share/licenses/dwm