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

Felix Yan felixonmars at archlinux.org
Sat Dec 24 15:18:41 UTC 2016


    Date: Saturday, December 24, 2016 @ 15:18:40
  Author: felixonmars
Revision: 201521

archrelease: copy trunk to community-staging-any

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

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

Copied: python-mpmath/repos/community-staging-any/PKGBUILD (from rev 201520, python-mpmath/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 15:18:40 UTC (rev 201521)
@@ -0,0 +1,53 @@
+# $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=0.19
+pkgrel=3
+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")
+md5sums=('af5cc956b2673b33a25c3e57299bae7b')
+
+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|' -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