updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dwm-hg-patches / PKGBUILD
blobeea0f99c98fd57a3c0bd7bef48d98323cd6c7895
1 # Contributer: v2punkt0 <v2punkt0@gmail.com>
3 pkgname='dwm-hg-patches'
4 pkgver=1507
5 pkgrel=1
6 pkgdesc="The latest hg pull of dwm with the "attach-aside", "useless-gap" and "transpenrency" patches"
7 url="http://dwm.suckless.org"
8 license='MIT'
9 arch=('i686' 'x86_64')
10 depends=('libx11' 'xcompmgr')
11 makedepends=('mercurial' 'sed')
12 conflicts=('dwm')
13 provides=('dwm')
14 source=(
15         dwm-hg-patches.install
16         http://0mark.unserver.de/dwm-sprinkles/export/31/trunk/patches/dwm-transparency.diff
17         http://dwm.suckless.org/patches/dwm-attachaside-5.7.2.diff
18         http://dwm.suckless.org/patches/dwm-uselessgap-5.8.diff         
21 install=('dwm-hg-patches.install')
24 _hgroot='http://code.suckless.org/hg'
25 _hgrepo='dwm'
27 build() {
28         cd $startdir/src
30         # update the repo, else clone a new one
31         if [ -d $_hgrepo ]; then
32                 rm -rf $_hgrepo
33                 hg clone ${_hgroot}/${_hgrepo}
34                 cd $_hgrepo
35         else
36                 hg clone ${_hgroot}/${_hgrepo}
37                 cd $_hgrepo
38         fi
40         cd $startdir/src/dwm
42         patch -Np1 -i ../dwm-attachaside-5.7.2.diff || return 1
43         patch -Np1 -i ../dwm-uselessgap-5.8.diff || return 1
44         patch -Np1 -i ../dwm-transparency.diff || return 1
46         cd $startdir/src/dwm
48         # add correct settings to config.mk
49         sed -i "s|^PREFIX =.*|PREFIX = /usr|" config.mk
50         sed -i "s|^X11INC =.*|X11INC = /usr/include/X11|" config.mk
51         sed -i "s|^X11LIB =.*|X11LIB = /usr/lib/X11|" config.mk
53         cp ../../config.h ./
55         msg "Starting build process."
56         make || return 1
57         make PREFIX=$startdir/pkg/usr install
59         mkdir -p $startdir/pkg/usr/share/licenses/dwm
60         cp LICENSE $startdir/pkg/usr/share/licenses/dwm
61         
62         msg " ATTENTION edit config.h from the source dir of this AUR package manually if you want to recompile with your customizations."
66 md5sums=('2bf54c1b9b6e9adc133180a9b1b19344'
67          '650cb426e4bf9117aab8f4bd3613b5e8'
68          'a92ee04c33b1082da61b55d3617249eb'
69          '47a467e2ae6b5ed2b58e1bf7cb7c966a')