public
Created

dzen + xft updated PKGBUILD

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
# Maintainer: Andreas B. Wagner <AndreasBWagner@pointfree.net> awagner on irc.freenode.net
# Contributor: Murtuza Akhtari <inxsible at gmail dot com>
# Adopted for updates by: BKLive <bkunixos@gmail.com>
 
pkgname=dzen2-xft-xpm-xinerama-svn
pkgver=271
pkgrel=2
pkgdesc="X notification utility with Xinerama, XPM, XFT and gadgets, svn version"
arch=('i686' 'x86_64')
url="http://gotmor.googlepages.com/dzen"
license=('MIT')
depends=('libxpm' 'libxinerama' 'libxft' 'libxss')
makedepends=('subversion' 'gcc' 'pkg-config' 'db')
provides=('dzen2')
conflicts=('dzen2' 'dzen2-gadgets-svn' 'dzen2-svn')
 
_svntrunk=http://dzen.googlecode.com/svn/trunk/
_svnmod=dzen2
 
build() {
cd $srcdir
 
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
 
msg "SVN checkout done or server timeout"
msg "Starting make..."
 
rm -rf $_svnmod-build
cp -rf $_svnmod $_svnmod-build
cd $_svnmod-build
 
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 \
CFLAGS=" -Wall -Os ${INCS} -DVERSION=\"${VERSION}\" -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT `pkg-config --cflags xft`" \
LIBS=" -L/usr/lib -lc -L${X11LIB} -lXss -lX11 -lXinerama -lXpm `pkg-config --libs xft`"
}
 
package() {
cd $srcdir/$_svnmod-build
 
make PREFIX=/usr DESTDIR=$pkgdir/ install
 
#license
install -m644 -D LICENSE $pkgdir/usr/share/licenses/$_svnmod/COPYING
 
#docs
mkdir -p $pkgdir/usr/share/doc/$_svnmod
cp README* $pkgdir/usr/share/doc/$_svnmod
 
#gadgets
cd gadgets
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
make PREFIX=/usr DESTDIR=$pkgdir install
 
#docs
cp README* $pkgdir/usr/share/doc/$_svnmod
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.