1 # Contributor: Thomas Dahms <thdahms@gmx.de>
6 pkgdesc="The latest hg pull of dwm-gtx, a branch of dwm, with improved layouts and Xinerama support"
7 url="http://s01.de/~gottox/index.cgi/proj_dwm"
11 makedepends=('mercurial' 'sed')
12 conflicts=('dwm' 'dwm-hg' 'dwm-gtx')
13 provides=('dwm' 'dwm-gtx')
17 _hgroot='http://s01.de/~gottox/hg'
23 # update the repo, else clone a new one
24 if [ -d $_hgrepo ]; then
29 hg clone ${_hgroot}/${_hgrepo}
33 # include custom config.h, if it exists. Note that default
34 # config.def.h will be used if not
35 if [ -f $startdir/config.h ]; then
36 cp $startdir/config.h .
39 # add correct settings to config.mk
40 sed -i "s|^PREFIX =.*|PREFIX = /usr|" config.mk
41 sed -i "s|^X11INC =.*|X11INC = /usr/include/X11|" config.mk
42 sed -i "s|^X11LIB =.*|X11LIB = /usr/lib/X11|" config.mk
44 msg "Starting build process."
46 make PREFIX=$startdir/pkg/usr install
48 mkdir -p $startdir/pkg/usr/share/licenses/dwm
49 cp LICENSE $startdir/pkg/usr/share/licenses/dwm