[arch-commits] Commit in python-mpmath/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 19:56:03 UTC 2019
Date: Friday, October 25, 2019 @ 19:56:02
Author: felixonmars
Revision: 519630
archrelease: copy trunk to community-staging-any
Added:
python-mpmath/repos/community-staging-any/
python-mpmath/repos/community-staging-any/PKGBUILD
(from rev 519629, python-mpmath/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-mpmath/repos/community-staging-any/PKGBUILD (from rev 519629, python-mpmath/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 19:56:02 UTC (rev 519630)
@@ -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>
+# Contributor: Iván Pulido <ijpulidos at riseup.net>
+
+pkgbase=python-mpmath
+pkgname=(python2-mpmath python-mpmath)
+pkgver=1.1.0
+pkgrel=2
+pkgdesc='Python library for arbitrary-precision floating-point arithmetic.'
+arch=(any)
+url='http://mpmath.org/'
+license=(BSD)
+makedepends=(python python2)
+source=($pkgbase-$pkgver.tar.gz::"https://github.com/fredrik-johansson/mpmath/archive/$pkgver.tar.gz")
+sha256sums=('16c01d589bcb1be5cab3a07de2855b578e5fc4a7882fb61a15f2aaf118fdd06e')
+
+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