updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bibstuff / PKGBUILD
blobc577095e49fae0fce0b5214adc9ece6060acd0d0
1 # Contributor: Gour <gour@gour-nitai.com>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
3 pkgname=bibstuff  
4 pkgver=1.0.0
5 pkgrel=3
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/"
8 arch=('any')
9 license=('MIT')
10 depends=('python2-simpleparse')
11 source=(http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz)
12 md5sums=('02dfd248f265e30fc70641f65c2d0208')
14 build() {
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
30   do
31     sed -i '1s+python+python2+' $_i
32   done