updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnotero / PKGBUILD
blob22fef1ae7a7e5688af73740d8360db9372991bc1
1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
2 pkgname=gnotero
3 pkgver=0.43
4 pkgrel=1
5 pkgdesc="A Gtk application which provides access to your Zotero references"
6 arch=(any)
7 url="http://www.cogsci.nl/software/gnotero"
8 license=('GPL')
9 depends=('python2' 'pygtk' 'pdftk' 'desktop-file-utils')
10 optdepends=(
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
19 build() {
20   cd "$srcdir/$pkgname-$pkgver"
21   python2 setup.py build
24 package() {
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|" \
32     \{\} +