[arch-commits] Commit in python-jinja/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 14:14:10 UTC 2020


    Date: Monday, November 9, 2020 @ 14:14:10
  Author: felixonmars
Revision: 746933

archrelease: copy trunk to community-staging-any

Added:
  python-jinja/repos/community-staging-any/
  python-jinja/repos/community-staging-any/PKGBUILD
    (from rev 746932, python-jinja/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: python-jinja/repos/community-staging-any/PKGBUILD (from rev 746932, python-jinja/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 14:14:10 UTC (rev 746933)
@@ -0,0 +1,49 @@
+# 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.11.2
+pkgrel=3
+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=('89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0')
+
+build() {
+  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 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"
+}
+
+package_python2-jinja() {
+  depends=('python2-setuptools' 'python2-markupsafe')
+
+  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