updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-svglib / PKGBUILD
blob67a21fc14f083a130af0eddb0dec37918acceb08
1 # Contributor: Vladimir Gorbunov <truedaemon@gmail.com>
3 pkgname=python-svglib
4 pkgver=0.6.3
5 pkgrel=2
6 pkgdesc="An experimental library for reading and converting SVG."
7 arch=('any')
8 url="http://pypi.python.org/pypi/svglib/$pkgver"
9 license=('LGPL')
10 depends=('python2' 'python-reportlab')
11 options=(!emptydirs)
12 install=
13 source=(http://pypi.python.org/packages/source/s/svglib/svglib-$pkgver.tar.gz)
14 md5sums=('454edcfef70d52f62e0e434f2efad853')
16 build() {
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