28 lines
784 B
Plaintext
28 lines
784 B
Plaintext
pkgname=python-jinja2
|
|
_name="${pkgname#python-}"
|
|
pkgver=3.1.5
|
|
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=("083d64f070f6f1b5f75971ae60240785")
|
|
|
|
src_prepare() {
|
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
|
}
|
|
|
|
src_build() {
|
|
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 --force-reinstall --root ${pkgdir} --find-links dist Jinja2
|
|
install -vDm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
|
|
}
|