[arch-commits] Commit in python2-munkres (3 files)

Maxime Gauduin alucryd at nymeria.archlinux.org
Mon Jul 29 21:14:29 UTC 2013


    Date: Monday, July 29, 2013 @ 23:14:28
  Author: alucryd
Revision: 94743

archrelease: copy trunk to community-any

Added:
  python2-munkres/repos/
  python2-munkres/repos/community-any/
  python2-munkres/repos/community-any/PKGBUILD
    (from rev 94742, python2-munkres/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: python2-munkres/repos/community-any/PKGBUILD (from rev 94742, python2-munkres/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD	                        (rev 0)
+++ repos/community-any/PKGBUILD	2013-07-29 21:14:28 UTC (rev 94743)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Adrian Sampson <adrian at radbox.org>
+
+pkgname=python2-munkres
+pkgver=1.0.5.4
+pkgrel=2
+pkgdesc='Munkres algorithm for the assignment problem'
+arch=('any')
+url='http://bmc.github.com/munkres/'
+license=('BSD')
+depends=('python2')
+makedepends=('python2-distribute')
+source=("http://pypi.python.org/packages/source/m/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz")
+md5sums=('cb9d114fb523428bab4742e88bc83696')
+
+prepare() {
+  cd ${pkgname#*-}-${pkgver}
+
+  sed -i 's|^#!.*python$|#!/usr/bin/python2|' $(grep -rl '^#!.*python')
+}
+
+build() {
+  cd ${pkgname#*-}-${pkgver}
+
+  python2 setup.py build
+}
+
+package() {
+  cd ${pkgname#*-}-${pkgver}
+
+  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
+}
+
+# vim: ts=2 sw=2 et:




More information about the arch-commits mailing list