[arch-commits] Commit in python2-munkres/repos (2 files)

Maxime Gauduin alucryd at nymeria.archlinux.org
Mon Aug 19 00:26:59 UTC 2013


    Date: Monday, August 19, 2013 @ 02:26:59
  Author: alucryd
Revision: 95932

archrelease: copy trunk to community-testing-any

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

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

Copied: python2-munkres/repos/community-testing-any/PKGBUILD (from rev 95931, python2-munkres/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2013-08-19 00:26:59 UTC (rev 95932)
@@ -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=3
+pkgdesc='Munkres algorithm for the assignment problem'
+arch=('any')
+url='http://bmc.github.com/munkres/'
+license=('BSD')
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("http://pypi.python.org/packages/source/m/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz")
+sha256sums=('105adad30659dbdf82815d3e12a74d4c01a3e0741d5ccbce194ee2ad4e5338d2')
+
+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