Files
MSYS2-packages/python-mako/PKGBUILD
T

47 lines
1.1 KiB
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=mako
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=1.3.0
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"
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=('e3a9d388fd00e87043edbe8792f45880ac0114e9c4adc69f6e9bfb2c55e3b11b')
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"
}