void-packages/srcpkgs/python-hoedown/template
Alessio Sergi 2d9af86939 python-hoedown: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-17 04:19:57 +02:00

30 lines
1,015 B
Bash

# Template file for 'python-hoedown'
pkgname=python-hoedown
version=0.2.3
revision=2
wrksrc="hoedown-$version"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
short_desc="Python2 binding for hoedown, a markdown parsing library"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
homepage="https://github.com/hhatto/python-hoedown"
license="MIT"
distfiles="${PYPI_SITE}/h/hoedown/hoedown-${version}.tar.gz"
checksum=18ac6569c1ac29de01cf9ba5ab96bae576465ee9a8409215fe28d436e77cfd7f
alternatives="hoedown:hoedownpy:/usr/bin/hoedownpy2"
python3-hoedown_package() {
replaces="python3.4-hoedown>=0"
short_desc="${short_desc/Python2/Python3}"
alternatives="hoedown:hoedownpy:/usr/bin/hoedownpy3"
pkg_install() {
vmove usr/bin/hoedownpy3
vmove usr/lib/python3*
}
}
python3.4-hoedown_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-hoedown>=${version}_${revision}"
}