37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
# Template file for 'python-Markdown'
|
|
pkgname=python-Markdown
|
|
version=2.6.6
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="Markdown-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-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}.tar.gz"
|
|
checksum=9a292bb40d6d29abac8024887bcfc1159d7a32dc1d6f1f6e8d6d8e293666c504
|
|
alternatives="markdown:markdown_py:/usr/bin/markdown_py2.7"
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md LICENSE
|
|
}
|
|
|
|
python3.4-Markdown_package() {
|
|
noarch=yes
|
|
depends="python3.4"
|
|
pycompile_version="3.4"
|
|
pycompile_module="markdown"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
alternatives="markdown:markdown_py:/usr/bin/markdown_py3.4"
|
|
pkg_install() {
|
|
vmove usr/bin/markdown_py3.4
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE.md LICENSE
|
|
}
|
|
}
|