[arch-commits] Commit in python-mpmath/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Mon Oct 2 11:25:10 UTC 2017


    Date: Monday, October 2, 2017 @ 11:25:09
  Author: arojas
Revision: 261243

Update to 1.0.0

Modified:
  python-mpmath/trunk/PKGBUILD

----------+
 PKGBUILD |   33 ++++++++++++++++-----------------
 1 file changed, 16 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-10-02 10:42:48 UTC (rev 261242)
+++ PKGBUILD	2017-10-02 11:25:09 UTC (rev 261243)
@@ -6,16 +6,16 @@
 # Contributor: Iván Pulido <ijpulidos at riseup.net>
 
 pkgbase=python-mpmath
-pkgname=('python2-mpmath' 'python-mpmath')
-pkgver=0.19
-pkgrel=3
+pkgname=(python2-mpmath python-mpmath)
+pkgver=1.0.0
+pkgrel=1
 pkgdesc='Python library for arbitrary-precision floating-point arithmetic.'
-arch=('any')
+arch=(any)
 url='http://mpmath.org/'
-license=('BSD')
-makedepends=('python' 'python2')
-source=("http://mpmath.org/files/mpmath-${pkgver}.tar.gz")
-md5sums=('af5cc956b2673b33a25c3e57299bae7b')
+license=(BSD)
+makedepends=(python python2)
+source=("http://mpmath.org/files/mpmath-$pkgver.tar.gz")
+sha256sums=('d32ba7afffbae688229a15f54fbc37c11f4989e4fac628c99b3c5b6889aee03d')
 
 prepare(){
   cp -R mpmath-$pkgver mpmath2-$pkgver
@@ -30,24 +30,23 @@
 }
 
 package_python2-mpmath() {
-  depends=('python2-gmpy2')
-  cd mpmath2-${pkgver}
+  depends=(python2-gmpy2)
+  cd mpmath2-$pkgver
 
-  find -name '*.py' | xargs sed -e 's|#!/usr/bin/python|#!/usr/bin/python2|' -i
+  find -name '*.py' | xargs sed -e 's|#!/usr/bin/python|#!/usr/bin/python2|' \
+                                -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' -i
 
   python2 setup.py install --root "$pkgdir" --optimize=1
 
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 
 package_python-mpmath() {
-  depends=('python-gmpy2')
-  cd mpmath-${pkgver}  
+  depends=(python-gmpy2)
+  cd mpmath-$pkgver  
 
   python setup.py install --root "$pkgdir" --optimize=1
 
-  install -D -m644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
+  install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }
-
-



More information about the arch-commits mailing list