summaryrefslogtreecommitdiff
path: root/extra/python-egenix-mx-base/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-10-11 23:14:37 +0000
committerroot <root@rshg054.dnsready.net>2011-10-11 23:14:37 +0000
commitf482dc1bd42773a12552e5a60df119410a0d8bd8 (patch)
tree7ef11817f41aecf969aeeb03f0dbb3cc28e2d8b4 /extra/python-egenix-mx-base/PKGBUILD
parentcbcf42aba84733e1b9072f5320519c99bf8c0ac7 (diff)
Tue Oct 11 23:14:37 UTC 2011
Diffstat (limited to 'extra/python-egenix-mx-base/PKGBUILD')
-rw-r--r--extra/python-egenix-mx-base/PKGBUILD20
1 files changed, 12 insertions, 8 deletions
diff --git a/extra/python-egenix-mx-base/PKGBUILD b/extra/python-egenix-mx-base/PKGBUILD
index 3ef1b6b16..dcde4e180 100644
--- a/extra/python-egenix-mx-base/PKGBUILD
+++ b/extra/python-egenix-mx-base/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 126581 2011-06-06 10:49:23Z stephane $
-# Maintainer:
+# $Id: PKGBUILD 140254 2011-10-11 00:44:55Z stephane $
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas@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 @@ depends=('python2')
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
}