[arch-commits] Commit in python-munkres/repos/community-any (PKGBUILD PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Thu Feb 21 14:30:08 UTC 2019


    Date: Thursday, February 21, 2019 @ 14:30:06
  Author: alucryd
Revision: 435092

archrelease: copy trunk to community-any

Added:
  python-munkres/repos/community-any/PKGBUILD
    (from rev 435091, python-munkres/trunk/PKGBUILD)
Deleted:
  python-munkres/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   81 +++++++++++++++++++++++--------------------------------------
 1 file changed, 31 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-02-21 14:29:58 UTC (rev 435091)
+++ PKGBUILD	2019-02-21 14:30:06 UTC (rev 435092)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-# Contributor: Adrian Sampson <adrian at radbox.org>
-
-pkgbase=python-munkres
-pkgname=('python-munkres' 'python2-munkres')
-pkgver=1.0.12
-pkgrel=2
-pkgdesc='Munkres algorithm for Python'
-arch=('any')
-url='https://github.com/bmc/munkres'
-license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("python-munkres-${pkgver}.tar.gz::https://github.com/bmc/munkres/archive/release-${pkgver}.tar.gz")
-sha256sums=('70b3b32b4fed3b354e5c42e4d1273880a33a13ab8c108a4247140eb661767a0b')
-
-prepare() {
-  mv {,python-}munkres-release-${pkgver}
-  cp -r python{,2}-munkres-release-${pkgver}
-
-  cd python2-munkres-release-${pkgver}
-
-  sed 's|#!.*python$|#!/usr/bin/env python2|' -i $(grep -rl '#!.*python$')
-}
-
-build() {
-  for py in python{,2}; do
-    pushd ${py}-munkres-release-${pkgver}
-    ${py} setup.py build
-    popd
-  done
-}
-
-package_python-munkres() {
-  depends=('python')
-
-  cd python-munkres-release-${pkgver}
-
-  python setup.py install --root="${pkgdir}" --optimize='1'
-}
-
-package_python2-munkres() {
-  depends=('python2')
-
-  cd python2-munkres-release-${pkgver}
-
-  python2 setup.py install --root="${pkgdir}" --optimize='1'
-}
-
-# vim: ts=2 sw=2 et:

Copied: python-munkres/repos/community-any/PKGBUILD (from rev 435091, python-munkres/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-02-21 14:30:06 UTC (rev 435092)
@@ -0,0 +1,31 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Adrian Sampson <adrian at radbox.org>
+
+pkgname=python-munkres
+pkgver=1.1.2
+pkgrel=1
+pkgdesc='Munkres algorithm for Python'
+arch=(any)
+url=https://github.com/bmc/munkres
+license=(Apache)
+depends=(python)
+makedepends=(
+  git
+  python-setuptools
+)
+source=(git+https://github.com/bmc/munkres.git#tag=release-${pkgver})
+sha256sums=(SKIP)
+
+build() {
+  cd munkres
+
+  python setup.py build
+}
+
+package() {
+  cd munkres
+
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list