1 # Maintainer: Fabio Zanini <fabio.zanini@fastmail.fm>
5 pkgdesc="Pybtex reads citation information from a file and produces a formatted bibliography."
7 url="https://code.launchpad.net/pybtex"
9 depends=('python2' 'bzr')
10 source=() # Bazaar is used to get this dynamically
11 md5sums=() # Bazaar is used to check this dynamically
17 msg "Connecting to the server...."
19 if [ -d ${srcdir}/${_bzrname} ] ; then
20 cd ${_bzrname} && bzr pull ${_bzrbranch}
21 msg "Local repository updated."
26 msg "BZR checkout done or server timeout"
28 msg "Starting make..."
29 cd "${srcdir}/${_bzrname}"
31 # Replace python with python2
32 for file in $(find $srcdir/$_bzrname -name '*.py' -print); do
33 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
34 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
39 cd "${srcdir}/${_bzrname}"
40 python2 setup.py install --prefix'=/usr' --root="${startdir}/pkg" || return 1