diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/python-cheetah |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/python-cheetah')
-rwxr-xr-x | community/python-cheetah/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/python-cheetah/PKGBUILD b/community/python-cheetah/PKGBUILD new file mode 100755 index 000000000..020eb7869 --- /dev/null +++ b/community/python-cheetah/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 40317 2011-02-22 19:44:06Z foutrelis $ +# Contributor: James Rayner <james@archlinux.org> +# Contributor: Todd Maynard <arch@toddmaynard.com> + +pkgname=python-cheetah +pkgver=2.4.4 +pkgrel=2 +pkgdesc="A Python-powered template engine and code generator" +arch=('i686' 'x86_64') +url="http://www.cheetahtemplate.org/" +license=('custom') +depends=('python2' 'python-markdown') +makedepends=('python2-distribute') +optdepends=('python2-pygments: for the CodeHighlighter filter') +provides=('cheetah') +conflicts=('cheetah') +source=(http://pypi.python.org/packages/source/C/Cheetah/Cheetah-${pkgver}.tar.gz) +md5sums=('853917116e731afbc8c8a43c37e6ddba') + +build() { + cd "${srcdir}/Cheetah-${pkgver}" + python2 setup.py build +} + +package() { + cd "${srcdir}/Cheetah-${pkgver}" + python2 setup.py install --root="${pkgdir}" + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + find $pkgdir/usr/lib/python2.7/site-packages/Cheetah/ -name '*.py' | \ + xargs sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|" +} |