42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'python-Mako'
|
|
pkgname=python-Mako
|
|
version=1.0.6
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="Mako-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-MarkupSafe"
|
|
pycompile_module="mako"
|
|
short_desc="Hyperfast and lightweight templating for Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://www.makotemplates.org/"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/M/Mako/Mako-${version}.tar.gz"
|
|
checksum=48559ebd872a8e77f92005884b3d88ffae552812cdf17db6768e5c3be5ebbe0d
|
|
alternatives="mako:mako-render:/usr/bin/mako-render2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-Mako_package() {
|
|
noarch=yes
|
|
pycompile_module="mako"
|
|
replaces="python3.4-Mako>=0"
|
|
depends="python3-setuptools python3-MarkupSafe"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="mako:mako-render:/usr/bin/mako-render3"
|
|
pkg_install() {
|
|
vmove usr/bin/mako-render3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-Mako_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-Mako>=${version}_${revision}"
|
|
}
|