1 # Maintainer: Ryan Stephenson <rycs42 gmail com>
6 pkgdesc="Dual window manager prototype - The latest hg pull"
7 url="http://hg.suckless.org/2wm/"
11 makedepends=('mercurial' 'sed')
15 _hgroot='http://code.suckless.org/hg'
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
36 msg "Starting build process."
38 make PREFIX=$startdir/pkg/usr install
40 mkdir -p $startdir/pkg/usr/share/licenses/2wm
41 cp LICENSE $startdir/pkg/usr/share/licenses/2wm