Christoph Reiter e8f4f9baa3 more CPEs
2024-03-26 09:46:25 +01:00

51 lines
1.2 KiB
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=mako
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=1.3.2
pkgrel=1
pkgdesc="A super-fast templating language that borrows the best ideas from the existing templating languages"
arch=('any')
url="https://pypi.python.org/pypi/Mako"
msys2_references=(
"pypi:Mako"
"cpe: cpe:/a:sqlalchemy:mako"
)
license=('MIT')
depends=("python-markupsafe"
"python-beaker")
makedepends=(
"python-build"
"python-installer"
"python-setuptools"
"python-wheel"
)
checkdepends=("python-pytest")
provides=("python3-${_realname}")
conflicts=("python3-${_realname}")
replaces=("python3-${_realname}")
options=('staticlibs')
source=("https://pypi.python.org/packages/source/M/Mako/Mako-${pkgver}.tar.gz")
sha256sums=('2a0c8ad7f6274271b3bb7467dd37cf9cc6dab4bc19cb69a4ef10669402de698e')
build() {
cd "${srcdir}/Mako-${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd "${srcdir}/Mako-${pkgver}"
python -m pytest
}
package() {
cd "${srcdir}/Mako-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/python-${_realname}/COPYING"
}