# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Sergej Pupykin # Maintainer: Mark Taylor pkgname=dzen2 pkgver=0.8.5 pkgrel=4 arch=(i686 x86_64) pkgdesc="X notification utility" url="http://gotmor.googlepages.com/dzen" license=("MIT") depends=('libx11') makedepends=('gcc') source=(http://gotmor.googlepages.com/$pkgname-$pkgver.tar.gz) md5sums=('5978620c2124c8a8ad52d7f17ce94fd7') build() { cd $startdir/src/dzen2-$pkgver patch -p0 config.mk < #LIBS = -L/usr/lib -lc -L\${X11LIB} -lX11 > #CFLAGS = -Os \${INCS} -DVERSION=\\"\${VERSION}\\" 34,35c34,35 < #LIBS = -L/usr/lib -lc -L\${X11LIB} -lX11 -lXinerama -lXpm < #CFLAGS = -Os \${INCS} -DVERSION=\\"\${VERSION}\\" -DDZEN_XINERAMA -DDZEN_XPM --- > LIBS = -L/usr/lib -lc -L\${X11LIB} -lX11 -lXinerama -lXpm > CFLAGS = -Os \${INCS} -DVERSION=\\"\${VERSION}\\" -DDZEN_XINERAMA -DDZEN_XPM EOF sed -i "s/CFLAGS = /CFLAGS = ${CFLAGS} /" config.mk make X11INC=/usr/include X11LIB=/usr/lib || return 1 make PREFIX=/usr MANPREFIX=/usr/man DESTDIR=$startdir/pkg install || return 1 install -m644 -D LICENSE $startdir/pkg/usr/share/licenses/dzen2/COPYING cd $startdir/src/dzen2-$pkgver/gadgets sed -i "s/CFLAGS = /CFLAGS = ${CFLAGS} /" config.mk make X11INC=/usr/include X11LIB=/usr/lib || return 1 make PREFIX=/usr MANPREFIX=/usr/man DESTDIR=$startdir/pkg install || return 1 }