1 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
5 pkgdesc="The open-sourced, Gnome based digital library manager. Think of it as an iTunes for your PDFs"
7 url="http://code.google.com/p/gpapers"
9 depends=('python2-poppler' 'python-pysqlite' 'pygtk' 'python-pygraphviz' 'django' 'gnome-python')
12 md5sums=('fb296b5eff8d5821894e43899344922d')
14 _svntrunk=http://gpapers.googlecode.com/svn/trunk
19 msg "Connecting to SVN server...."
21 if [[ -d "$_svnmod/.svn" ]]; then
22 (cd "$_svnmod" && svn up -r "$pkgver")
24 svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
27 msg "SVN checkout done or server timeout"
28 msg "Starting build..."
30 rm -rf "$srcdir/$_svnmod-build"
31 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
32 cd "$srcdir/$_svnmod-build"
38 find . -name "*py" -exec sed 's/env python/env python2/' -i {} \;
39 install -d "$pkgdir/usr/lib/python2.7/${pkgname}"
40 cp -r * "$pkgdir/usr/lib/python2.7/${pkgname}/"
41 install -Dm755 "${srcdir}/gpapers.sh" "$pkgdir/usr/bin/gpapers"
42 rm -rf $(find "$pkgdir" -type d -name ".svn")