[arch-commits] Commit in python2-munkres/trunk (PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Fri Mar 6 10:04:14 UTC 2015
Date: Friday, March 6, 2015 @ 11:04:14
Author: alucryd
Revision: 128792
upgpkg: python2-munkres 1.0.7-1
Modified:
python2-munkres/trunk/PKGBUILD
----------+
PKGBUILD | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-03-06 10:00:23 UTC (rev 128791)
+++ PKGBUILD 2015-03-06 10:04:14 UTC (rev 128792)
@@ -1,39 +1,38 @@
# $Id$
-# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
# Contributor: Adrian Sampson <adrian at radbox.org>
pkgname=python2-munkres
-pkgver=1.0.5.4
-pkgrel=3
+pkgver=1.0.7
+pkgrel=1
pkgdesc='Munkres algorithm for the assignment problem'
arch=('any')
-url='http://bmc.github.com/munkres/'
+url='https://github.com/bmc/munkres'
license=('BSD')
depends=('python2')
makedepends=('python2-setuptools')
-source=("http://pypi.python.org/packages/source/m/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz")
-sha256sums=('105adad30659dbdf82815d3e12a74d4c01a3e0741d5ccbce194ee2ad4e5338d2')
+source=("http://pypi.python.org/packages/source/m/munkres/munkres-${pkgver}.tar.gz")
+sha256sums=('334a5d849bcefed3e4c32ecfbca4ee8dfc8ef5f2f181334d6f7f4e100b71d6c4')
prepare() {
- cd ${pkgname#*-}-${pkgver}
+ cd munkres-${pkgver}
sed -i 's|^#!.*python$|#!/usr/bin/python2|' $(grep -rl '^#!.*python')
}
build() {
- cd ${pkgname#*-}-${pkgver}
+ cd munkres-${pkgver}
python2 setup.py build
}
package() {
- cd ${pkgname#*-}-${pkgver}
+ cd munkres-${pkgver}
- python2 setup.py install --root="${pkgdir}" --optimize=1
+ python2 setup.py install --root="${pkgdir}" --optimize='1'
-# License
- install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname}
- install -m 644 {,"${pkgdir}"/usr/share/licenses/${pkgname}/}LICENSE
+ install -dm 755 "${pkgdir}"/usr/share/licenses/python2-munkres
+ install -m 644 LICENSE "${pkgdir}"/usr/share/licenses/python2-munkres/
}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list