void-packages/srcpkgs/python-munkres/template
2014-12-04 07:20:24 +00:00

33 lines
919 B
Bash

# Template file for 'python-munkres'
pkgname=python-munkres
version=1.0.7
revision=1
noarch=yes
wrksrc="munkres-${version}"
build_style="python-module"
python_versions="2.7 3.4"
hostmakedepends="python-devel python3.4-devel"
makedepends="${hostmakedepends}"
depends="python"
pycompile_module="munkres"
short_desc="Algorithm for the Assignment Problem (Python2)"
maintainer="Steven R <dev@styez.com>"
homepage="http://software.clapper.org/munkres/"
license="BSD"
distfiles="https://pypi.python.org/packages/source/m/munkres/munkres-${version}.tar.gz"
checksum=334a5d849bcefed3e4c32ecfbca4ee8dfc8ef5f2f181334d6f7f4e100b71d6c4
pre_install() {
sed -i 's,#!/usr/bin/env python,&3.4,' build-3.4/lib/munkres.py
}
python3.4-munkres_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="munkres"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
}