From 88cb991090cf0a89a61676fbc3a36b69c778cc2f Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Sun, 15 Nov 2020 22:12:37 +0000
Subject: python-jinja: 2.11.2

---
 abs/core/python_modules/python-jinja/PKGBUILD | 48 +++++++++++++--------------
 1 file changed, 24 insertions(+), 24 deletions(-)

diff --git a/abs/core/python_modules/python-jinja/PKGBUILD b/abs/core/python_modules/python-jinja/PKGBUILD
index 1bcd44e..c9822bd 100644
--- a/abs/core/python_modules/python-jinja/PKGBUILD
+++ b/abs/core/python_modules/python-jinja/PKGBUILD
@@ -1,49 +1,49 @@
-# $Id$
 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
+# Contributor: David Runge <dave@sleepmap.de>
 # Contributor: Peter Baldwin <bald_pete@hotmail.com>
 
 pkgname=('python-jinja' 'python2-jinja')
-pkgver=2.10
-pkgrel=1
+pkgver=2.11.2
+pkgrel=4
 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')
-source=(https://pypi.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz)
-sha256sums=('f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4')
+checkdepends=('python-pytest' 'python2-pytest')
+source=(https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz)
+sha256sums=('89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0')
 
 build() {
-  cd "$srcdir"
-
-  rm -rf python{2,3}-build
-  for builddir in python{2,3}-build; do
-    cp -r Jinja2-$pkgver $builddir
-    pushd $builddir
-    ${builddir%-build} setup.py build
-    popd
-  done
+  cd Jinja2-$pkgver
+  python3 setup.py build
+}
+
+check() {
+  cd Jinja2-$pkgver
+  export PYTHONPATH=build/lib:$PYTHONPATH
+  py.test
+  py.test2
 }
 
 package_python-jinja() {
   depends=('python-setuptools' 'python-markupsafe')
+  optdepends=('python-babel: for i18n support')
 
-  cd "$srcdir/python3-build"
-
-  python3 setup.py install --root="$pkgdir" -O1
+  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 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 ext/Vim/jinja.vim -t "$pkgdir/usr/share/vim/vimfiles/syntax"
 }
 
 package_python2-jinja() {
   depends=('python2-setuptools' 'python2-markupsafe')
 
-  cd "$srcdir/python2-build"
-
-  python2 setup.py install --root="$pkgdir" -O1
-
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  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:
-- 
cgit v0.12

