-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathPKGBUILD
67 lines (61 loc) · 1.98 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
pkgname=dwm
pkgver=6.0
pkgrel=2
pkgdesc="A dynamic window manager for X"
url="http://dwm.suckless.org"
arch=('i686' 'x86_64')
license=('MIT')
options=(zipman)
depends=('libx11' 'libxinerama')
install=dwm.install
source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz
dwm.desktop
config.h
bstack.c
gaplessgrid.c
push.c)
_patches=(01-statuscolours.diff
02-monoclecount.diff
03-noborder.diff
04-centredfloating.diff
05-scratchpad.diff
06-attachaside.diff
07-nopaddedbar.diff)
source=(${source[@]} ${_patches[@]})
build() {
cd $srcdir/$pkgname-$pkgver
for p in "${_patches[@]}"; do
echo "=> $p"
patch < ../$p || return 1
done
cp $srcdir/config.h config.h
cp $srcdir/bstack.c bstack.c
cp $srcdir/gaplessgrid.c gaplessgrid.c
cp $srcdir/push.c push.c
sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
sed -i 's/^CFLAGS = -g/#CFLAGS += -g/g' config.mk
sed -i 's/^#CFLAGS = -std/CFLAGS += -std/g' config.mk
sed -i 's/^LDFLAGS = -g/#LDFLAGS += -g/g' config.mk
sed -i 's/^#LDFLAGS = -s/LDFLAGS += -s/g' config.mk
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}
package() {
cd $srcdir/$pkgname-$pkgver
make PREFIX=/usr DESTDIR=$pkgdir install
install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README
install -m644 -D $srcdir/dwm.desktop $pkgdir/usr/share/xsessions/dwm.desktop
}
md5sums=('8bb00d4142259beb11e13473b81c0857'
'939f403a71b6e85261d09fc3412269ee'
'db8a40d51592ca6e2c7bc1b99d960e10'
'362e07f0f042875b84d7739d9d8855c4'
'4ba509b3b93f7b1418dc703c70de536f'
'689534c579b1782440ddcaf71537d8fd'
'57b1a8f21b61c55f906d7cc075111613'
'e3faeea09a554bbbce29c4d480b0ca41'
'1f0244803c0188f1b6f4e5794e7f5ca2'
'ed11483bfccbf65ff9714c0ca4e7bb23'
'bc6240f3adadf604a450f6375badec61'
'a92ee04c33b1082da61b55d3617249eb'
'29213fff0d93fc3a7183948f6c792ac5')