updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / griffith-svn / PKGBUILD
blobe5bb583ac11b5ea2d7dd11e614766ab8c0d0aa6c
1 # Contributor: Otakar Haska <ota.haska@seznam.cz>
2 pkgname=griffith-svn
3 pkgver=1478
4 pkgrel=1
5 pkgdesc="Media collection manager application - SVN version"
6 arch=('i686' 'x86_64')
7 url="http://griffith.cc"
8 license=('GPL')
9 depends=('pygtk>=2.14.1' 'python-pysqlite' 'python-reportlab>=2.3' 'pil' 'pyxml' 'python2-sqlalchemy' 'docbook2x' 'sqlite3')
10 makedepends=('subversion')
11 source=()
12 md5sums=()
13 provides=('griffith')
15 _svntrunk="http://svn.berlios.de/svnroot/repos/griffith/trunk"
16 _svnmod="griffith"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to SVN server......."
21   if [ -d $_svnmod/.svn ]; then
22     cd $_svnmod && svn up -r $pkgver
23   else
24     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25   fi
26   msg "SVN checkout done or server timeout"
28   if [ -e $srcdir/$_svnmod-build ]; then
29     rm -rf $srcdir/$_svnmod-build
30   fi
31   cd "$srcdir"
32   cp -r $_svnmod $_svnmod-build
34   msg "Starting make..."
35   cd "$srcdir/$_svnmod-build"
37   # python2 fix
38   sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' griffith
41 package() {
42   cd "$srcdir/$_svnmod-build"
43   make DESTDIR=${pkgdir} install || return 1
44   rm ${pkgdir}/usr/bin/griffith
45   ln -s /usr/share/griffith/lib/griffith ${pkgdir}/usr/bin/griffith