summaryrefslogtreecommitdiff
path: root/community/dzen2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/dzen2/PKGBUILD')
-rw-r--r--community/dzen2/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/community/dzen2/PKGBUILD b/community/dzen2/PKGBUILD
new file mode 100644
index 000000000..0453c200b
--- /dev/null
+++ b/community/dzen2/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 27711 2010-09-27 09:27:49Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Mark Taylor <skymt0@gmail.com>
+
+pkgname=dzen2
+pkgver=0.8.5
+pkgrel=6
+arch=(i686 x86_64)
+pkgdesc="X notification utility"
+url="http://gotmor.googlepages.com/dzen"
+license=("MIT")
+depends=('libx11' 'libxpm' 'libxinerama' 'libxft')
+makedepends=('gcc')
+source=(http://gotmor.googlepages.com/$pkgname-$pkgver.tar.gz)
+md5sums=('5978620c2124c8a8ad52d7f17ce94fd7')
+
+build()
+{
+ cd $srcdir/dzen2-$pkgver
+
+ patch -p0 config.mk <<EOF
+22,23c22,23
+< LIBS = -L/usr/lib -lc -L\${X11LIB} -lX11
+< CFLAGS = -Os \${INCS} -DVERSION=\\"\${VERSION}\\"
+---
+> #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 `pkg-config --libs xft`
+> CFLAGS = -Os \${INCS} -DVERSION=\\"\${VERSION}\\" -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT `pkg-config --cflags xft`
+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=$pkgdir install || return 1
+ install -m644 -D LICENSE $pkgdir/usr/share/licenses/dzen2/COPYING
+
+ cd $srcdir/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=$pkgdir install || return 1
+}