1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
5 pkgdesc="A Gtk application which provides access to your Zotero references"
7 url="http://www.cogsci.nl/software/gnotero"
9 depends=('python2' 'pygtk' 'pdftk' 'desktop-file-utils')
11 'gnote: for integration with gnote'
12 'python-levenshtein: for integration with gnote'
14 source=(http://www.cogsci.nl/files/software/${pkgname}/${pkgname}_${pkgver}-1.tar.gz)
15 md5sums=('579b4568f7e0820cce3aee3d10e0b54c')
16 sha1sums=('26335bb37e2485df64ae1da5d3204906ff1e771c')
17 install=gnotero.install
20 cd "$srcdir/$pkgname-$pkgver"
21 python2 setup.py build
25 cd "$srcdir/$pkgname-$pkgver"
26 python2 setup.py install --root=$pkgdir
28 # Patch to use python2
29 find $pkgdir -type f \( -name '*.py' -or -executable \) -exec \
30 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
31 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \