1 # $Id: PKGBUILD 60201 2011-12-07 14:41:34Z arodseth $
2 # Contributor: James Rayner <james@archlinux.org>
3 # Contributor: Todd Maynard <arch@toddmaynard.com>
5 pkgname=python2-cheetah
8 pkgdesc="A Python-powered template engine and code generator"
10 url="http://www.cheetahtemplate.org/"
12 depends=('python2' 'python-markdown')
13 makedepends=('python2-distribute')
14 optdepends=('python2-pygments: for the CodeHighlighter filter')
15 provides=('cheetah' 'python-cheetah')
16 conflicts=('cheetah' 'python-cheetah')
17 source=(http://pypi.python.org/packages/source/C/Cheetah/Cheetah-${pkgver}.tar.gz)
18 md5sums=('853917116e731afbc8c8a43c37e6ddba')
21 cd "${srcdir}/Cheetah-${pkgver}"
22 python2 setup.py build
26 cd "${srcdir}/Cheetah-${pkgver}"
27 python2 setup.py install --root="${pkgdir}"
28 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
30 find $pkgdir/usr/lib/python2.7/site-packages/Cheetah/ -name '*.py' | \
31 xargs sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|"