From e4ff16a4bd0a0cce2064a033b0fb77e556dea7df Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 1 May 2016 01:22:47 +0200 Subject: [PATCH] python-Markdown: use alternatives --- srcpkgs/python-Markdown/template | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/srcpkgs/python-Markdown/template b/srcpkgs/python-Markdown/template index f65617bbc3..130650fb7c 100644 --- a/srcpkgs/python-Markdown/template +++ b/srcpkgs/python-Markdown/template @@ -1,7 +1,7 @@ # Template file for 'python-Markdown' pkgname=python-Markdown version=2.6.6 -revision=1 +revision=2 noarch=yes wrksrc="Markdown-${version}" build_style=python-module @@ -15,11 +15,9 @@ 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() { - rm -f ${DESTDIR}/usr/bin/markdown_py - vbin build-2.7/scripts-2.7/markdown_py - vbin build-3.4/scripts-3.4/markdown_py markdown_py3.4 vlicense LICENSE.md LICENSE } @@ -29,6 +27,7 @@ python3.4-Markdown_package() { 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