added aur/python2-cheetah

This commit is contained in:
Kevin Mihelich 2012-01-13 22:38:37 -05:00
parent 791b20a477
commit c9e8639661

View file

@ -0,0 +1,34 @@
# $Id: PKGBUILD 60201 2011-12-07 14:41:34Z arodseth $
# Contributor: James Rayner <james@archlinux.org>
# Contributor: Todd Maynard <arch@toddmaynard.com>
plugrel=1
pkgname=python2-cheetah
pkgver=2.4.4
pkgrel=3
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' 'python-cheetah')
conflicts=('cheetah' 'python-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|"
}