1 # $Id: PKGBUILD 27711 2010-09-27 09:27:49Z spupykin $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Maintainer: Mark Taylor <skymt0@gmail.com>
7 source=(http://gotmor.googlepages.com/$pkgname-$pkgver.tar.gz dzen.profile)
11 pkgdesc="X notification utility, packaged so it can run simultaneously with dzen2-svn"
12 url="http://gotmor.googlepages.com/dzen"
14 depends=('libx11' 'libxpm' 'libxinerama' 'libxft')
16 optdepends=('dzen2-xft-xpm-xinerama-svn: an awesome version that you should use')
17 md5sums=('5978620c2124c8a8ad52d7f17ce94fd7'
18 'd32d8c3e5c8a211fb48a9e6db0bfa6b6')
22 cd $srcdir/dzen2-$pkgver
24 patch -p0 config.mk <<EOF
26 < LIBS = -L/usr/lib -lc -L\${X11LIB} -lX11
27 < CFLAGS = -Os \${INCS} -DVERSION=\\"\${VERSION}\\"
29 > #LIBS = -L/usr/lib -lc -L\${X11LIB} -lX11
30 > #CFLAGS = -Os \${INCS} -DVERSION=\\"\${VERSION}\\"
32 < #LIBS = -L/usr/lib -lc -L\${X11LIB} -lX11 -lXinerama -lXpm
33 < #CFLAGS = -Os \${INCS} -DVERSION=\\"\${VERSION}\\" -DDZEN_XINERAMA -DDZEN_XPM
35 > LIBS = -L/usr/lib -lc -L\${X11LIB} -lX11 -lXinerama -lXpm `pkg-config --libs xft`
36 > CFLAGS = -Os \${INCS} -DVERSION=\\"\${VERSION}\\" -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT `pkg-config --cflags xft`
39 sed -i "s/CFLAGS = /CFLAGS = ${CFLAGS} /" config.mk
41 make X11INC=/usr/include X11LIB=/usr/lib || return 1
42 make PREFIX=/opt/dzen MANPREFIX=/opt/dzen/man DESTDIR=$pkgdir install || return 1
43 install -m644 -D LICENSE $pkgdir/opt/dzen/COPYING
44 install -m644 -D README.dzen $pkgdir/opt/dzen/README.dzen
45 install -m755 -D help $pkgdir/opt/dzen/help.sh
46 install -m755 -D ../dzen.profile $pkgdir/etc/profile.d/dzen.sh
48 cd $srcdir/dzen2-$pkgver/gadgets
49 sed -i "s/CFLAGS = /CFLAGS = ${CFLAGS} /" config.mk
50 make X11INC=/usr/include X11LIB=/usr/lib || return 1
51 make PREFIX=/opt/dzen MANPREFIX=/opt/dzen/man DESTDIR=$pkgdir install || return 1