1 # Contributer: v2punkt0 <v2punkt0@gmail.com>
3 pkgname='dwm-hg-patches'
6 pkgdesc="The latest hg pull of dwm with the "attach-aside", "useless-gap" and "transpenrency" patches"
7 url="http://dwm.suckless.org"
10 depends=('libx11' 'xcompmgr')
11 makedepends=('mercurial' 'sed')
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'
30 # update the repo, else clone a new one
31 if [ -d $_hgrepo ]; then
33 hg clone ${_hgroot}/${_hgrepo}
36 hg clone ${_hgroot}/${_hgrepo}
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
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
55 msg "Starting build process."
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
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')