1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
5 pkgdesc="A Qt application which provides access to your Zotero references"
7 url="http://cogsci.nl/software/qnotero"
9 depends=('python2-pyqt' 'pdftk' 'desktop-file-utils')
11 'gnote: for integration with gnote'
12 'python-levenshtein: for integration with gnote'
16 source=(http://files.cogsci.nl/software/${pkgname}/${pkgname}_${pkgver}.tar.gz)
17 md5sums=('a28e389e8d3d93ba0c49ea380b548eda')
18 sha256sums=('254bb80e6da28bdc0b2ba49fc31f4b10864d8873ac5403a721d8350422cd472b')
19 install=qnotero.install
22 cd "$srcdir/$pkgname-$pkgver"
23 python2 setup.py build
27 cd "$srcdir/$pkgname-$pkgver"
28 python2 setup.py install --root=$pkgdir
30 # Patch to use python2
31 find $pkgdir -type f \( -name '*.py' -or -executable \) -exec \
32 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
33 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \