updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / statinator4k-svn / PKGBUILD
blob8658effdc9b6e13b2b3eef3ea456c4788a7b2481
1 # Contributor: Patrice Peterson <runiq at archlinux dot us>
2 pkgname=statinator4k-svn
3 pkgver=32
4 pkgrel=1
5 pkgdesc="Info thing for dwm and other"
6 arch=('i686' 'x86_64')
7 url="http://0mark.unserver.de/statinator4k/"
8 license=('MIT')
9 depends=('dbus' 'alsa-lib')
10 makedepends=('subversion')
11 provides=(statinator4k)
13 _svntrunk="https://svn.0mark.unserver.de/statinator4k"
14 _svnmod=statinator4k
16 build() {
17   cd "$srcdir"
19   if [ -d $_svnmod/.svn ]; then
20     (cd $_svnmod && svn up -r $pkgver)
21   else
22     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
23   fi
25   msg "SVN checkout done or server timeout"
26   msg "Starting make..."
28   rm -rf "$srcdir/$_svnmod-build"
29   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
30   cd "$srcdir/$_svnmod-build"
32   # choose!
33   make
34   #make FORMATER=\"-DFORMAT_METHOD=\\\"formats_dwm_colorbar.h\\\"\"
35   #make FORMATER=\"-DFORMAT_METHOD=\\\"formats_dwm_sprinkles.h\\\"\"
36   #make FORMATER=\"-DFORMAT_METHOD=\\\"formats_dwm_html.h\\\"\"
38   make PREFIX=/usr DESTDIR=$pkgdir install || return 1
40   install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE && \
41   install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README