[arch-commits] Commit in python-egenix-mx-base/trunk (PKGBUILD)

Stéphane Gaudreault stephane at archlinux.org
Mon Oct 10 20:44:46 EDT 2011


    Date: Monday, October 10, 2011 @ 20:44:46
  Author: stephane
Revision: 140253

upgpkg: python-egenix-mx-base 3.2.1-1

upstream update

Modified:
  python-egenix-mx-base/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-10-11 00:43:43 UTC (rev 140252)
+++ PKGBUILD	2011-10-11 00:44:46 UTC (rev 140253)
@@ -1,10 +1,10 @@
 # $Id$
-# Maintainer:
+# Maintainer: Stéphane Gaudreault <stephane at archlinux.org>
 # Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
 
 pkgname=python-egenix-mx-base
-origname=egenix-mx-base
-pkgver=3.2.0
+_origname=egenix-mx-base
+pkgver=3.2.1
 pkgrel=1
 pkgdesc="A collection of Python tools"
 arch=('i686' 'x86_64')
@@ -14,16 +14,20 @@
 makedepends=('python2-distribute')
 replaces=('egenix-mx-base')
 provides=('egenix-mx-base')
-source=("http://downloads.egenix.com/python/${origname}-${pkgver}.tar.gz")
-sha1sums=('7346268002461512ef59da726047f79649a82b27')
+source=("http://downloads.egenix.com/python/${_origname}-${pkgver}.tar.gz")
+sha1sums=('a82f7f155ea92f26f40a6a3bf9160bfac7c52a00')
 
 build() {
-  cd "${srcdir}/${origname}-${pkgver}"
+  cd "${srcdir}/${_origname}-${pkgver}"
+
+  find . -name \*.py -exec sed -i -e "s|#!/usr/bin/env python|#!/usr/bin/env python2|" \
+                                  -e "s|#!/usr/local/.*python.*|#!/usr/bin/env python2|" {} \;
+
   python2 setup.py build
 }
 
 package() {
-  cd "${srcdir}/${origname}-${pkgver}"
+  cd "${srcdir}/${_origname}-${pkgver}"
   python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1
   install -D -m644 COPYRIGHT "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 }



More information about the arch-commits mailing list