pkgname=mako pkgver=1.3.10 pkgdesc="A template library written in Python" arch=(any) homepage="https://github.com/sqlalchemy/mako" license=(MIT) depends=( python python-markupsafe ) makedepends=( python-build python-installer python-setuptools python-wheel ) sources=("${pkgname}-${pkgver}.tar.gz") urls=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${sources[0]}") md5sums=("c9dfb2bf42827459dd505c60f2262a7c") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { python -m build --wheel --no-isolation } # check require some unneeded depends. src_install() { python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ } # vim:ft=sh syn=sh et sw=2: