PKGBUILDs/community/dzen2/PKGBUILD
2009-10-09 21:15:33 -05:00

46 lines
1.5 KiB
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Mark Taylor <skymt0@gmail.com>
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 <<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
> 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
}