updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / python2-template2pdf / PKGBUILD
blob7767899aa8413e466ca121cbe665bbdbcfdb4b4d
1 # Maintainer: Jonathan Liu <net147@gmail.com>
2 pkgname=python2-template2pdf
3 _realpkgname=template2pdf
4 pkgver=0.6.5
5 pkgrel=2
6 pkgdesc="Modules to render tRML template to PDF"
7 arch=('any')
8 url="http://code.google.com/p/template2pdf/"
9 license=('LGPL')
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')
16 build() {
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
23 package() {
24   cd "${srcdir}/${_realpkgname}-${pkgver}"
25   python2 setup.py install --root "${pkgdir}" -O1
28 # vim:set ts=2 sw=2 et: