[arch-commits] Commit in (4 files)
Thore Bödecker
foxxx0 at archlinux.org
Tue Jul 24 10:30:33 UTC 2018
Date: Tuesday, July 24, 2018 @ 10:30:32
Author: foxxx0
Revision: 363279
initial version
Added:
python-kajiki/
python-kajiki/repos/
python-kajiki/trunk/
python-kajiki/trunk/PKGBUILD
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Added: python-kajiki/trunk/PKGBUILD
===================================================================
--- python-kajiki/trunk/PKGBUILD (rev 0)
+++ python-kajiki/trunk/PKGBUILD 2018-07-24 10:30:32 UTC (rev 363279)
@@ -0,0 +1,41 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+pkgbase='python-kajiki'
+_pkgbase="${pkgbase#python-}"
+pkgname=("python-${_pkgbase}" "python2-${_pkgbase}")
+pkgver=0.7.2
+pkgrel=1
+pkgdesc='Python XML-based template engine with Genshi-like syntax and Jinja-style blocks'
+arch=('any')
+url='https://github.com/nandoflorestan/kajiki'
+license=('LGPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-babel' 'python2-babel' 'python-nose' 'python2-nose' 'python-nine' 'python2-nine')
+source=("${_pkgbase}-${pkgver}.tar.gz::https://github.com/nandoflorestan/kajiki/archive/${pkgver}.tar.gz")
+sha512sums=('bf626db9cf1bb2b976a6bf1043967d245987424d348e39a08ad3d9bafd61d8d8125a09f49175922361ea78135d71054a851241a6f8c4938740b7cf61f876cf3c')
+
+prepare(){
+ cp -r "${srcdir}/${_pkgbase}-${pkgver}" "${srcdir}/${_pkgbase}-${pkgver}-py2"
+
+ # fix python interpreter for python2 stuff
+ find "${srcdir}/${_pkgbase}-${pkgver}-py2" -type f -name '*.py' \
+ -exec sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|1' {} +
+}
+
+check() {
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ python ./setup.py test
+ cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
+ python2 ./setup.py test
+}
+
+package_python-kajiki() {
+ depends=('python')
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ python ./setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-kajiki() {
+ depends=('python2')
+ cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
+ python2 ./setup.py install --root="$pkgdir/" --optimize=1
+}
Property changes on: python-kajiki/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list