2 # Tsekhovoy Eugene aka Krash <8552246@gmail.com>
7 pkgdesc="A dynamic window manager for X with patches of krash"
8 url="http://dwm.suckless.org"
11 depends=('libx11' 'dmenu' 'rxvt-unicode')
12 conflicts=('dwm' 'dwm-hg')
14 source=("http://dl.suckless.org/dwm/dwm-${pkgver}.tar.gz"
16 'dwm-5.8.2-offset_monitor.patch')
17 md5sums=('2799f885c05817ca112d521bb247f797'
18 '1cda439a951020b795495df33a0e0d06'
19 'dfa8d0f8467af8ccb4983049ff0c6722')
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