void-packages/srcpkgs/python-Markdown/template

38 lines
986 B
Bash

# Template file for 'python-Markdown'
pkgname=python-Markdown
version=2.6.1
revision=1
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="http://pypi.python.org/pypi/Markdown"
license="BSD"
distfiles="${PYPI_SITE}/M/Markdown/Markdown-${version}.tar.gz"
checksum=b5879b87e8e5c125c92ab8c8f3babce78ad4e840446eed73c5b6e2984648d2b1
pre_install() {
mv build-3.4/scripts-3.4/markdown_py{,3}
}
post_install() {
rm -f ${DESTDIR}/usr/bin/markdown_py
vbin build-2.7/scripts-2.7/markdown_py
}
python3.4-Markdown_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="markdown"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/bin/markdown_py3
vmove usr/lib/python3.4
}
}