updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dwm-krash / PKGBUILD
blob89ee07384a151464cb7d45dd7beb146794b8e092
2 # Tsekhovoy Eugene aka Krash <8552246@gmail.com>
4 pkgname='dwm-krash'
5 pkgver=5.9
6 pkgrel=2
7 pkgdesc="A dynamic window manager for X with patches of krash"
8 url="http://dwm.suckless.org"
9 arch=('i686' 'x86_64')
10 license=('MIT')
11 depends=('libx11' 'dmenu' 'rxvt-unicode')
12 conflicts=('dwm' 'dwm-hg')
13 provides=('dwm')
14 source=("http://dl.suckless.org/dwm/dwm-${pkgver}.tar.gz"
15         'config.h'
16         'dwm-5.8.2-offset_monitor.patch')
17 md5sums=('2799f885c05817ca112d521bb247f797'
18          '1cda439a951020b795495df33a0e0d06'
19          'dfa8d0f8467af8ccb4983049ff0c6722')
21 build() {
22     cd ${srcdir}/dwm-${pkgver}
23     cp ${srcdir}/config.h config.h
25     msg "Applying offset monitor patch..."
26     patch -Np1 -i ${srcdir}/dwm-5.8.2-offset_monitor.patch || return 1
28     INCS="-I. -I/usr/include -I/usr/include/X11"
29     LIBS="-L/usr/lib -lc -L/usr/lib/X11 -lX11"
30     CFLAGS="${CFLAGS} ${INCS} -std=c99 -pedantic -DVERSION=\\\"${pkgver}-krash\\\""
31     LDFLAGS="${LDFLAGS} ${LIBS}"
33     make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || return 1
34     make PREFIX=/usr DESTDIR=$pkgdir install     || return 1
36     install -m644 -D LICENSE $pkgdir/usr/share/licenses/dwm/LICENSE && \
37     install -m644 -D README  $pkgdir/usr/share/doc/dwm/README