[arch-commits] Commit in python-chameleon/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jun 30 16:41:39 UTC 2018
Date: Saturday, June 30, 2018 @ 16:41:39
Author: felixonmars
Revision: 348475
archrelease: copy trunk to community-staging-any
Added:
python-chameleon/repos/community-staging-any/
python-chameleon/repos/community-staging-any/PKGBUILD
(from rev 348474, python-chameleon/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-chameleon/repos/community-staging-any/PKGBUILD (from rev 348474, python-chameleon/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 16:41:39 UTC (rev 348475)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-chameleon
+pkgname=('python-chameleon' 'python2-chameleon')
+pkgver=3.3
+pkgrel=2
+pkgdesc="Fast HTML/XML Template Compiler"
+arch=('any')
+license=('custom:BSD' 'ZPL')
+url="http://www.pagetemplates.org/"
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/malthe/chameleon/archive/$pkgver.tar.gz")
+sha512sums=('72ea9138bb8118451102a4a7a23851bc4b389842e30b63d53e187a9f768f7e16782ee3fcf5ba86c3c166b90936c7c91d7c5b7b10c24a3383e10a2d70f656351f')
+
+prepare() {
+ cp -a chameleon-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/chameleon-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/chameleon-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/chameleon-$pkgver
+ python setup.py test
+
+ cd "$srcdir"/chameleon-$pkgver-py2
+ python2 setup.py test
+}
+
+package_python-chameleon() {
+ depends=('python')
+
+ cd chameleon-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-chameleon() {
+ depends=('python2')
+
+ cd chameleon-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
More information about the arch-commits
mailing list