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

Stéphane Gaudreault stephane at archlinux.org
Sat Oct 13 23:05:43 UTC 2012


    Date: Saturday, October 13, 2012 @ 19:05:42
  Author: stephane
Revision: 168670

upgpkg: python-egenix-mx-base 3.2.4-2

rename for python2

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

----------+
 PKGBUILD |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-10-13 22:15:37 UTC (rev 168669)
+++ PKGBUILD	2012-10-13 23:05:42 UTC (rev 168670)
@@ -2,30 +2,29 @@
 # Maintainer: Stéphane Gaudreault <stephane at archlinux.org>
 # Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
 
-pkgname=python-egenix-mx-base
+pkgbase=python-egenix-mx-base
+pkgname=('python2-egenix-mx-base')
 _origname=egenix-mx-base
 pkgver=3.2.4
-pkgrel=1
+pkgrel=2
 pkgdesc="A collection of Python tools"
 arch=('i686' 'x86_64')
 license=('custom')
 url="http://www.egenix.com/products/python/mxBase/"
-depends=('python2')
-replaces=('egenix-mx-base')
-provides=('egenix-mx-base')
+makedepends=('python2')
 source=("http://downloads.egenix.com/python/${_origname}-${pkgver}.tar.gz")
 sha1sums=('22d7fcbd582177f9a43245eadc3644f3b48cc9a7')
 
 build() {
   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|" {} \;
+  find . -name \*.py -exec sed -i -e "s|^#!.*python|#!/usr/bin/python2|" {} \;
 
   python2 setup.py build
 }
 
-package() {
+package_python2-egenix-mx-base() {
+  depends=('python2>=2.7')
   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