[arch-commits] Commit in (3 files)

Antonio Rojas arojas at archlinux.org
Sun Dec 21 10:52:37 UTC 2014


    Date: Sunday, December 21, 2014 @ 11:52:36
  Author: arojas
Revision: 124269

Splitting sage-mathematics

Added:
  python-mpmath/
  python-mpmath/trunk/
  python-mpmath/trunk/PKGBUILD

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

Added: python-mpmath/trunk/PKGBUILD
===================================================================
--- python-mpmath/trunk/PKGBUILD	                        (rev 0)
+++ python-mpmath/trunk/PKGBUILD	2014-12-21 10:52:36 UTC (rev 124269)
@@ -0,0 +1,51 @@
+# 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>
+
+pkgbase=python-mpmath
+pkgname=('python2-mpmath' 'python-mpmath')
+pkgver=0.19
+pkgrel=1
+pkgdesc='Python library for arbitrary-precision floating-point arithmetic.'
+arch=('any')
+url='http://code.google.com/p/mpmath'
+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
+}
+
+


Property changes on: python-mpmath/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list