pkgname=python-jinja2 _name="${pkgname#python-}" pkgver=3.1.6 pkgdesc="A simple pythonic template language written in Python" arch=('any') homepage="https://palletsprojects.com/p/jinja/" license=('BSD-3-Clause') sources=("${_name}-${pkgver}.tar.gz") urls=("https://pypi.org/packages/source/J/Jinja2/${sources[0]}") md5sums=("66d4c25ff43d1deaf9637ccda523dec8") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { export PYTHONDONTWRITEBYTECODE=1 pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD } src_check() { : } src_install() { pip3 install --no-deps --no-warn-script-location --no-index --no-cache-dir --no-user --ignore-installed --root ${pkgdir} --find-links dist Jinja2 install -vDm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/" }