updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / python2-cheetah / PKGBUILD
blob15d970e3734276c77973dd4d65515360aec0361e
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
6 pkgver=2.4.4
7 pkgrel=3
8 pkgdesc="A Python-powered template engine and code generator"
9 arch=('i686' 'x86_64')
10 url="http://www.cheetahtemplate.org/"
11 license=('custom')
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')
20 build() {
21   cd "${srcdir}/Cheetah-${pkgver}"
22   python2 setup.py build
25 package() {
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|"