1 # Contributor: Vladimir Gorbunov <truedaemon@gmail.com>
6 pkgdesc="An experimental library for reading and converting SVG."
8 url="http://pypi.python.org/pypi/svglib/$pkgver"
10 depends=('python2' 'python-reportlab')
13 source=(http://pypi.python.org/packages/source/s/svglib/svglib-$pkgver.tar.gz)
14 md5sums=('454edcfef70d52f62e0e434f2efad853')
17 cd $srcdir/svglib-$pkgver
19 sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
20 -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
21 $(find $srcdir -name '*.py')
23 /usr/bin/python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1