[arch-commits] Commit in python-jinja/trunk (PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Sun Oct 6 01:10:43 UTC 2019
Date: Sunday, October 6, 2019 @ 01:10:43
Author: foutrelis
Revision: 513018
upgpkg: python-jinja 2.10.3-1
- New upstream release.
- PKGBUILD style changes.
Modified:
python-jinja/trunk/PKGBUILD
----------+
PKGBUILD | 57 +++++++++++++++++++++------------------------------------
1 file changed, 21 insertions(+), 36 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-05 21:48:10 UTC (rev 513017)
+++ PKGBUILD 2019-10-06 01:10:43 UTC (rev 513018)
@@ -2,35 +2,27 @@
# 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
+pkgver=2.10.3
+pkgrel=1
pkgdesc="A simple pythonic template language written in Python"
arch=('any')
-url="http://jinja.pocoo.org/"
+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/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha256sums=('065c4f02ebe7f7cf559e49ee5a95fb800a9e4528727aec6f24402a5374c65013')
+source=(https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz)
+sha256sums=('9fe95f19286cfefaa917656583d020be14e7859c6b0252588391e47db34527de')
-prepare() {
- mv -v "${_name}-${pkgver}" "${pkgbase}-${pkgver}"
- cd "${pkgbase}-${pkgver}"
-}
-
build() {
- cd "${pkgbase}-${pkgver}"
- python setup.py build
- python2 setup.py build
+ cd Jinja2-$pkgver
+ python3 setup.py build
}
check() {
- cd "${pkgbase}-${pkgver}"
- export PYTHONPATH="build:${PYTHONPATH}"
+ cd Jinja2-$pkgver
+ export PYTHONPATH=build:$PYTHONPATH
py.test
py.test2
}
@@ -38,29 +30,22 @@
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}"
+
+ 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 "${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}"
+
+ 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