python-Markdown: use python2-module build style, fix xlint, fix alternatives

This commit is contained in:
fosslinux 2020-04-25 08:40:23 +10:00 committed by Piotr
parent acc7e321a1
commit 1103f0edfa

View file

@ -1,21 +1,21 @@
# Template file for 'python-Markdown'
pkgname=python-Markdown
version=3.1.1
revision=2
revision=3
archs=noarch
wrksrc="Markdown-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
build_style=python2-module
hostmakedepends="python-setuptools"
depends="python-setuptools"
pycompile_module="markdown"
short_desc="Python2 implementation of John Gruber's Markdown"
maintainer="Peter Bui <pbui@github.bx612.space>"
license="BSD-3-Clause"
homepage="https://github.com/waylan/Python-Markdown"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/M/Markdown/Markdown-${version}.tar.gz"
checksum=2e50876bcdd74517e7b71f3e7a76102050edec255b3983403f1a63e7c8a41e7a
alternatives="markdown:markdown_py:/usr/bin/markdown_py2"
post_install() {
vlicense LICENSE.md LICENSE
mv ${DESTDIR}/usr/bin/markdown_py ${DESTDIR}/usr/bin/markdown_py2
}