30 lines
1.0 KiB
Bash
30 lines
1.0 KiB
Bash
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
|
# then please put 'unknown'.
|
|
|
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
|
pkgname=python-jinja2
|
|
pkgver=3.1.4
|
|
pkgrel=1
|
|
pkgdesc="A simple pythonic template language written in Python"
|
|
arch=('x86_64')
|
|
url="https://jinja.palletsprojects.com/en/3.1.x/"
|
|
license=('BSD-3-Clause')
|
|
depends=('python' 'python-markupsafe')
|
|
makedepends=('python-wheel' 'python-setuptools' 'python-flit-core')
|
|
source=(https://github.com/pallets/jinja/releases/download/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz)
|
|
sha256sums=(4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369)
|
|
|
|
build() {
|
|
cd ${pkgname#*-}-${pkgver}
|
|
|
|
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname#*-}-${pkgver}
|
|
|
|
pip3 install --ignore-installed --no-deps --root=${pkgdir} --no-index --no-user --find-links=dist Jinja2
|
|
}
|