updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / dwm-par / PKGBUILD
blobfb86b0218d050b9d3aae8023043842f7fc32fce5
1 pkgname='dwm-par'
2 pkgver=1513
3 pkgrel=2
4 pkgdesc="dwm with a dark blue theme"
5 url="http://dwm.suckless.org"
6 license='MIT'
7 arch=('i686' 'x86_64')
8 depends=('libx11' 'acpi')
9 makedepends=('mercurial' 'sed')
10 conflicts=('dwm')
11 provides=('dwm')
12 source=()
13 md5sums=()
15 _hgroot='http://hg.suckless.org/'
16 _hgrepo='dwm'
18 build() {
19         cd $startdir/src
21         # update the repo, else clone a new one
22         if [ -d $_hgrepo ]; then
23                 cd $_hgrepo
24                 make clean
25                 hg pull -u
26         else
27                 hg clone ${_hgroot}/${_hgrepo}
28                 cd $_hgrepo
29         fi
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         # patch
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
41         make || return 1
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