updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / qnotero / PKGBUILD
blob828b7347f8d5cd25bffb27d8b608384edb50889d
1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
2 pkgname=qnotero
3 pkgver=0.47
4 pkgrel=1
5 pkgdesc="A Qt application which provides access to your Zotero references"
6 arch=(any)
7 url="http://cogsci.nl/software/qnotero"
8 license=('GPL')
9 depends=('python2-pyqt' 'pdftk' 'desktop-file-utils')
10 optdepends=(
11   'gnote: for integration with gnote'
12   'python-levenshtein: for integration with gnote'
14 provides=("gnotero")
15 replaces=("gnotero")
16 source=(http://files.cogsci.nl/software/${pkgname}/${pkgname}_${pkgver}.tar.gz)
17 md5sums=('a28e389e8d3d93ba0c49ea380b548eda')
18 sha256sums=('254bb80e6da28bdc0b2ba49fc31f4b10864d8873ac5403a721d8350422cd472b')
19 install=qnotero.install
21 build() {
22   cd "$srcdir/$pkgname-$pkgver"
23   python2 setup.py build
26 package() {
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|" \
34     \{\} +