[arch-commits] Commit in python-mpmath/repos (2 files)

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


    Date: Monday, October 2, 2017 @ 11:25:47
  Author: arojas
Revision: 261244

archrelease: copy trunk to community-testing-any

Added:
  python-mpmath/repos/community-testing-any/
  python-mpmath/repos/community-testing-any/PKGBUILD
    (from rev 261243, python-mpmath/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: python-mpmath/repos/community-testing-any/PKGBUILD (from rev 261243, python-mpmath/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2017-10-02 11:25:47 UTC (rev 261244)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
+# Contributor: Rafael G. Martins <rafael at rafaelmartins.com>
+# Contributor: Iván Pulido <ijpulidos at riseup.net>
+
+pkgbase=python-mpmath
+pkgname=(python2-mpmath python-mpmath)
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='Python library for arbitrary-precision floating-point arithmetic.'
+arch=(any)
+url='http://mpmath.org/'
+license=(BSD)
+makedepends=(python python2)
+source=("http://mpmath.org/files/mpmath-$pkgver.tar.gz")
+sha256sums=('d32ba7afffbae688229a15f54fbc37c11f4989e4fac628c99b3c5b6889aee03d')
+
+prepare(){
+  cp -R mpmath-$pkgver mpmath2-$pkgver
+}
+
+build() {
+  cd mpmath2-$pkgver  
+  python2 setup.py build
+
+  cd ../mpmath-$pkgver
+  python setup.py build
+}
+
+package_python2-mpmath() {
+  depends=(python2-gmpy2)
+  cd mpmath2-$pkgver
+
+  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
+}
+
+
+package_python-mpmath() {
+  depends=(python-gmpy2)
+  cd mpmath-$pkgver  
+
+  python setup.py install --root "$pkgdir" --optimize=1
+
+  install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list