1 # Contributor: Gour <gour@gour-nitai.com>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
6 pkgdesc="Collection of python2 scripts and modules for interacting with BibTeX style databases of citation references"
7 url="http://code.google.com/p/bibstuff/"
10 depends=('python2-simpleparse')
11 source=(http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz)
12 md5sums=('02dfd248f265e30fc70641f65c2d0208')
15 cd $srcdir/$pkgname-$pkgver
16 python2 setup.py install --root=$pkgdir
18 # copying license information
19 install -D -m644 license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
21 # copying readme information
22 install -Dm644 README.txt $pkgdir/usr/share/doc/$pkgname/README.txt
24 # copying examples directory
25 install -d $pkgdir/usr/share/doc/$pkgname/examples
26 cp examples/* $pkgdir/usr/share/doc/$pkgname/examples
27 for _i in $pkgdir/usr/lib/python2.7/site-packages/bibgrammar.py \
28 $pkgdir/usr/share/doc/bibstuff/examples/jmaker.py \
29 $pkgdir/usr/lib/python2.7/site-packages/bibname.py
31 sed -i '1s+python+python2+' $_i