void-packages/srcpkgs/python-munkres/template

34 lines
960 B
Bash

# Template file for 'python-munkres'
pkgname=python-munkres
version=1.0.11
revision=2
noarch=yes
wrksrc="munkres-${version}"
build_style="python-module"
pycompile_module="munkres.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Algorithm for the Assignment Problem (Python2)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/bmc/munkres"
license="Apache-2.0"
distfiles="${PYPI_SITE}/m/munkres/munkres-${version}.tar.gz"
checksum=7188f2ed6e8d3eb6c5ec4919200faa6194732b99707b058f7e9f068c588f7eca
python3-munkres_package() {
noarch=yes
pycompile_module="munkres.py"
replaces="python3.4-munkres>=0"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-munkres_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-munkres>=${version}_${revision}"
}