35 lines
1014 B
Bash
35 lines
1014 B
Bash
# Template file for 'python-mistune'
|
|
pkgname=python-mistune
|
|
version=0.7.4
|
|
revision=2
|
|
wrksrc="mistune-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools python-Cython python3-Cython"
|
|
makedepends="python-devel python3-devel"
|
|
pycompile_module="mistune.py"
|
|
short_desc="The fastest markdown parser for Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/lepture/mistune"
|
|
license="3-clause-BSD"
|
|
distfiles="${PYPI_SITE}/m/mistune/mistune-${version}.tar.gz"
|
|
checksum=8517af9f5cd1857bb83f9a23da75aa516d7538c32a2c5d5c56f3789a9e4cd22f
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-mistune_package() {
|
|
pycompile_module="mistune.py"
|
|
replaces="python3.4-mistune>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-mistune_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-mistune>=${version}_${revision}"
|
|
}
|