1 # Maintainer: Jonathan Liu <net147@gmail.com>
2 pkgname=python2-template2pdf
3 _realpkgname=template2pdf
6 pkgdesc="Modules to render tRML template to PDF"
8 url="http://code.google.com/p/template2pdf/"
10 depends=('python-imaging' 'python-reportlab')
11 source=("http://pypi.python.org/packages/source/t/${_realpkgname}/${_realpkgname}-${pkgver}.tar.gz"
12 "image_resolver.patch")
13 md5sums=('6b112bae8cb16be44f0047b77bba4697'
14 '9ae0b508524c973ed0715af9e2c18953')
17 cd "${srcdir}/${_realpkgname}-${pkgver}"
18 patch -Np0 -i "${srcdir}/image_resolver.patch"
19 find "${srcdir}" -name '*.py' -exec sed -i -e "s|#!/usr/bin/python|#!/usr/bin/python2|" {} +
20 python2 setup.py build
24 cd "${srcdir}/${_realpkgname}-${pkgver}"
25 python2 setup.py install --root "${pkgdir}" -O1
28 # vim:set ts=2 sw=2 et: