Files
MSYS2-packages/python-jinja/PKGBUILD
Alex Ferreira 5d8f59096f Add ansible 2.9.7 (#1945)
* ansible: add pkgbuild

* ansible: fix: add python-yaml and python-jinja dependencies

* ansible: fix: add libcrypt headers for cython dependency

* ansible: fix: add libcrypt headers for python-yaml dependency

* ansible: fix: isolate i686 and x86_64 builds

* Auto stash before rebase of "alex1a/feature/ansible-pkg"

* ansible: fix: remove unused dependencies

* ansible: fix: remove mingw unused variables; change workaround about tarball symbolic links; edit some wrong installation directories
2020-06-23 08:12:40 +03:00

33 lines
980 B
Bash

# Maintainer: Alexandre Ferreira < alex.jorge.m [at] gmail.com >
_realname=jinja
pkgbase=python-${_realname}
pkgname=("python-${_realname}")
pkgver=2.11.2
pkgrel=1
pkgdesc='A simple pythonic template language written in Python'
arch=('i686' 'x86_64')
license=('BSD')
url='http://jinja.pocoo.org/'
depends=('python-setuptools' 'python-markupsafe')
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/pallets/jinja/archive/${pkgver}.tar.gz")
sha256sums=('c5720a681bf1c5b11e184af32e6a8ce28670911787702b20cd0367e3877bbcae')
prepare() {
cd "${srcdir}"
rm -rf python-build-${CARCH} | true
cp -r "${_realname}-${pkgver}" "python-build-${CARCH}"
}
build() {
msg "Python build for ${CARCH}"
cd "${srcdir}/python-build-${CARCH}"
/usr/bin/python setup.py build
}
package() {
cd "${srcdir}/python-build-${CARCH}"
/usr/bin/python setup.py install --root="${pkgdir}" -O1
install -Dm644 LICENSE.rst "${pkgdir}/usr/share/licenses/python-${_realname}/LICENSE.rst"
}