summaryrefslogtreecommitdiff
path: root/pcr/python2-cheetah/PKGBUILD
diff options
context:
space:
mode:
authoraurelien <aurelien@cwb.io>2012-11-15 10:12:55 +0100
committeraurelien <aurelien@cwb.io>2012-11-15 10:12:55 +0100
commit0cd9adb532064d3784120e8ef2df1631d83b96fb (patch)
tree760701073c0487ae60b88d8c3b5de601cd2af76e /pcr/python2-cheetah/PKGBUILD
parentc0ac35ad0f06c2e9a9f1263caea279cb9f8fc423 (diff)
+ python2-cheetah (i686) python-prettytable (any) python2-argparse (any)
Diffstat (limited to 'pcr/python2-cheetah/PKGBUILD')
-rw-r--r--pcr/python2-cheetah/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/pcr/python2-cheetah/PKGBUILD b/pcr/python2-cheetah/PKGBUILD
new file mode 100644
index 000000000..ea6b1036b
--- /dev/null
+++ b/pcr/python2-cheetah/PKGBUILD
@@ -0,0 +1,34 @@
+# Contributor: Julien Nicoulaud <julien.nicoulaud@gmail.com>
+# Contributor: James Rayner <james@archlinux.org>
+# Contributor: Todd Maynard <arch@toddmaynard.com>
+# Source: https://github.com/nicoulaj/archlinux-packages
+# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
+
+pkgname=python2-cheetah
+pkgver=2.4.4
+pkgrel=5
+pkgdesc="A Python-powered template engine and code generator"
+arch=(i686 x86_64)
+url="http://www.cheetahtemplate.org"
+license=(custom)
+depends=(python2 python2-markdown)
+makedepends=(python2-distribute)
+optdepends=('python2-pygments: for the CodeHighlighter filter')
+provides=(cheetah python-cheetah)
+conflicts=(cheetah python-cheetah)
+changelog=Changelog
+source=(http://pypi.python.org/packages/source/C/Cheetah/Cheetah-${pkgver}.tar.gz)
+
+build() {
+ cd "${srcdir}/Cheetah-${pkgver}"
+ python2 setup.py build
+}
+
+package() {
+ msg "Install..."
+ cd "${srcdir}/Cheetah-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" || return 1
+
+ msg2 "Install copyright resources in /usr/share/licenses/${pkgname}..."
+ install -Dm644 "${srcdir}/Cheetah-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}