updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / gpapers / PKGBUILD
blob337ddcff2f3ea4fc40b83aa4841e4e611881e351
1 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
2 pkgname=gpapers
3 pkgver=150
4 pkgrel=1
5 pkgdesc="The open-sourced, Gnome based digital library manager. Think of it as an iTunes for your PDFs"
6 arch=('any')
7 url="http://code.google.com/p/gpapers"
8 license=('GPL2')
9 depends=('python2-poppler' 'python-pysqlite' 'pygtk' 'python-pygraphviz' 'django' 'gnome-python')
10 makedepends=('svn')
11 source=("gpapers.sh")
12 md5sums=('fb296b5eff8d5821894e43899344922d')
14 _svntrunk=http://gpapers.googlecode.com/svn/trunk
15 _svnmod=gpapers
17 package() {
18   cd "$srcdir"
19   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
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"
33   rm -fr ext website 
35   #
36   # BUILD
37   #
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")
43