new blfs: dev-python/mako-1.3.10
This commit is contained in:
36
dev-python/mako-1.3.10.PKGBUILD
Normal file
36
dev-python/mako-1.3.10.PKGBUILD
Normal file
@@ -0,0 +1,36 @@
|
||||
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:
|
||||
Reference in New Issue
Block a user