1 # Maintainer: Joao Cordeiro <jlcordeiro at gmail dot com>
2 # Contributor: Vasily Shevkunov <vasily@shevkunov.name>
4 pkgname=python2-progressbar
7 pkgdesc="Text progressbar library for python. Using python 2."
9 url="http://code.google.com/p/python-progressbar/"
11 makedepends=('python2')
13 source=(http://python-progressbar.googlecode.com/files/progressbar-$pkgver.tar.gz)
14 md5sums=('4f904e94b783b4c6e71aa74fd2432c59')
16 cd $startdir/src/progressbar-$pkgver
18 sed -i 's|^#!/usr/bin/python$|#!/usr/bin/python2|' examples.py
19 sed -i 's|^#!/usr/bin/python$|#!/usr/bin/python2|' setup.py
20 sed -i 's|^#!/usr/bin/python$|#!/usr/bin/python2|' progressbar/compat.py
21 sed -i 's|^#!/usr/bin/python$|#!/usr/bin/python2|' progressbar/__init__.py
22 sed -i 's|^#!/usr/bin/python$|#!/usr/bin/python2|' progressbar/widgets.py
24 python2 setup.py install --root=$startdir/pkg || return 1