34 lines
1,023 B
Bash
34 lines
1,023 B
Bash
# Template file for 'python-MarkupSafe'
|
|
pkgname=python-MarkupSafe
|
|
version=0.23
|
|
revision=7
|
|
wrksrc="MarkupSafe-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel"
|
|
pycompile_module="markupsafe"
|
|
short_desc="Implements a XML/HTML/XHTML Markup safe string for Python2"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://github.com/mitsuhiko/markupsafe"
|
|
license="BSD"
|
|
distfiles="${PYPI_SITE}/M/MarkupSafe/MarkupSafe-${version}.tar.gz"
|
|
checksum=a4ec1aff59b95a14b45eb2e23761a0179e98319da5a7eb76b56ea8cdc7b871c3
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-MarkupSafe_package() {
|
|
pycompile_module="markupsafe"
|
|
replaces="python3.4-MarkupSafe>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-MarkupSafe_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-MarkupSafe>=${version}_${revision}"
|
|
}
|