[arch-commits] Commit in python-jinja/repos/community-any (PKGBUILD PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Sun Oct 6 01:10:47 UTC 2019
Date: Sunday, October 6, 2019 @ 01:10:47
Author: foutrelis
Revision: 513019
archrelease: copy trunk to community-any
Added:
python-jinja/repos/community-any/PKGBUILD
(from rev 513018, python-jinja/trunk/PKGBUILD)
Deleted:
python-jinja/repos/community-any/PKGBUILD
----------+
PKGBUILD | 117 ++++++++++++++++++++++++++-----------------------------------
1 file changed, 51 insertions(+), 66 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-06 01:10:43 UTC (rev 513018)
+++ PKGBUILD 2019-10-06 01:10:47 UTC (rev 513019)
@@ -1,66 +0,0 @@
-# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
-# Contributor: David Runge <dave at sleepmap.de>
-# Contributor: Peter Baldwin <bald_pete at hotmail.com>
-
-_name=Jinja2
-pkgbase=python-jinja
-pkgname=('python-jinja' 'python2-jinja')
-pkgver=2.10.1
-pkgrel=2
-pkgdesc="A simple pythonic template language written in Python"
-arch=('any')
-url="http://jinja.pocoo.org/"
-license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-markupsafe'
- 'python2-markupsafe')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha256sums=('065c4f02ebe7f7cf559e49ee5a95fb800a9e4528727aec6f24402a5374c65013')
-
-prepare() {
- mv -v "${_name}-${pkgver}" "${pkgbase}-${pkgver}"
- cd "${pkgbase}-${pkgver}"
-}
-
-build() {
- cd "${pkgbase}-${pkgver}"
- python setup.py build
- python2 setup.py build
-}
-
-check() {
- cd "${pkgbase}-${pkgver}"
- export PYTHONPATH="build:${PYTHONPATH}"
- py.test
- py.test2
-}
-
-package_python-jinja() {
- depends=('python-setuptools' 'python-markupsafe')
- optdepends=('python-babel: for i18n support')
- cd "${pkgbase}-${pkgver}"
- python setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}/"
- install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
- install -vDm 644 ext/Vim/jinja.vim \
- -t "${pkgdir}/usr/share/vim/vimfiles/syntax"
- install -vDm 644 ext/jinja.el -t "${pkgdir}/usr/share/emacs/site-lisp"
- install -vDm 644 AUTHORS {CHANGES,README}.rst \
- -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-
-package_python2-jinja() {
- depends=('python2-setuptools' 'python2-markupsafe')
- optdepends=('python2-babel: for i18n support')
- cd "${pkgbase}-${pkgver}"
- python2 setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}/"
- install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
- install -vDm 644 AUTHORS {CHANGES,README}.rst \
- -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-# vim:set ts=2 sw=2 et:
Copied: python-jinja/repos/community-any/PKGBUILD (from rev 513018, python-jinja/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-06 01:10:47 UTC (rev 513019)
@@ -0,0 +1,51 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: David Runge <dave at sleepmap.de>
+# Contributor: Peter Baldwin <bald_pete at hotmail.com>
+
+pkgname=('python-jinja' 'python2-jinja')
+pkgver=2.10.3
+pkgrel=1
+pkgdesc="A simple pythonic template language written in Python"
+arch=('any')
+url="https://palletsprojects.com/p/jinja/"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-markupsafe'
+ 'python2-markupsafe')
+checkdepends=('python-pytest' 'python2-pytest')
+source=(https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz)
+sha256sums=('9fe95f19286cfefaa917656583d020be14e7859c6b0252588391e47db34527de')
+
+build() {
+ cd Jinja2-$pkgver
+ python3 setup.py build
+}
+
+check() {
+ cd Jinja2-$pkgver
+ export PYTHONPATH=build:$PYTHONPATH
+ py.test
+ py.test2
+}
+
+package_python-jinja() {
+ depends=('python-setuptools' 'python-markupsafe')
+ optdepends=('python-babel: for i18n support')
+
+ cd Jinja2-$pkgver
+ python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname"
+
+ install -Dm644 ext/Vim/jinja.vim -t "$pkgdir/usr/share/vim/vimfiles/syntax"
+ install -Dm644 ext/jinja.el -t "$pkgdir/usr/share/emacs/site-lisp"
+}
+
+package_python2-jinja() {
+ depends=('python2-setuptools' 'python2-markupsafe')
+ optdepends=('python2-babel: for i18n support')
+
+ cd Jinja2-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list