42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'python-Markdown'
|
|
pkgname=python-Markdown
|
|
version=2.6.10
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="Markdown-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="unzip python-setuptools python3-setuptools"
|
|
depends="python"
|
|
pycompile_module="markdown"
|
|
short_desc="Python2 implementation of John Gruber's Markdown"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://github.com/waylan/Python-Markdown"
|
|
license="3-clause-BSD"
|
|
distfiles="${PYPI_SITE}/M/Markdown/Markdown-${version}.zip"
|
|
checksum=cfa536d1ee8984007fcecc5a38a493ff05c174cb74cb2341dafd175e6bc30851
|
|
alternatives="markdown:markdown_py:/usr/bin/markdown_py2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md LICENSE
|
|
}
|
|
|
|
python3-Markdown_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="markdown"
|
|
replaces="python3.4-Markdown>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="markdown:markdown_py:/usr/bin/markdown_py3"
|
|
pkg_install() {
|
|
vmove usr/bin/markdown_py3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.md LICENSE
|
|
}
|
|
}
|
|
python3.4-Markdown_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-Markdown>=${version}_${revision}"
|
|
}
|