aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-munkres/APKBUILD
blob: 2783d9bb22b0bfc8260189b9f86490a1ad1e0c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-munkres
pkgver=1.0.6
pkgrel=0
pkgdesc="Munkres algorithm for the assignment problem"
url="http://bmc.github.com/munkres/"
arch="noarch"
license="BSD"
depends="python"
depends_dev=""
makedepends="python-dev"
install=""
subpackages=""
source="https://pypi.python.org/packages/source/m/munkres/munkres-$pkgver.tar.gz"

_builddir="$srcdir"/munkres-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="d7ba3b8c5001578ae229a2d5a655872f  munkres-1.0.6.tar.gz"
sha256sums="c78f803b9b776bfb20a25c9c7bb44adbf0f9202c2024d51aa5969d21e560208d  munkres-1.0.6.tar.gz"
sha512sums="0c8b8fb0f41e8d23f09b0ff35900f6161de5efa972be2c77b6e4b5bf9951cbc498ac251aef587b5a2c4254bf8aa68ccda40af179b83ca5e2d4abca3fa4b303b4  munkres-1.0.6.tar.gz"