summaryrefslogtreecommitdiff
path: root/community/python2-cheetah/PKGBUILD
diff options
context:
space:
mode:
authorJoe <joe@joelightning.com>2011-10-20 22:51:34 +0100
committerJoe <joe@joelightning.com>2011-10-20 22:51:34 +0100
commite866f0523be39471f4ff960fde220ff65ecfe503 (patch)
tree773659d4e29799c113d364c02b76b8bcde29d932 /community/python2-cheetah/PKGBUILD
parent3bba0cffb3b78e071fed7a076a70916dee05a38e (diff)
parent5c0a5f2b9fa7f1683f279728342aa7f5f0cf90a3 (diff)
Merge branch 'master' of ssh://parabola-git/abslibre-mips64el
Diffstat (limited to 'community/python2-cheetah/PKGBUILD')
-rwxr-xr-xcommunity/python2-cheetah/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/python2-cheetah/PKGBUILD b/community/python2-cheetah/PKGBUILD
new file mode 100755
index 000000000..fd6ebf4ed
--- /dev/null
+++ b/community/python2-cheetah/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 56977 2011-10-17 13:24:23Z jelle $
+# Contributor: James Rayner <james@archlinux.org>
+# Contributor: Todd Maynard <arch@toddmaynard.com>
+
+pkgname=python2-cheetah
+pkgver=2.4.4
+pkgrel=3
+pkgdesc="A Python-powered template engine and code generator"
+arch=('i686' 'x86_64' 'mips64el')
+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|"
+}