[arch-commits] Commit in python-sympy/repos (2 files)
Antonio Rojas
arojas at archlinux.org
Sat Dec 14 00:44:04 UTC 2019
Date: Saturday, December 14, 2019 @ 00:44:03
Author: arojas
Revision: 537604
archrelease: copy trunk to community-testing-any
Added:
python-sympy/repos/community-testing-any/
python-sympy/repos/community-testing-any/PKGBUILD
(from rev 537603, python-sympy/trunk/PKGBUILD)
----------+
PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
Copied: python-sympy/repos/community-testing-any/PKGBUILD (from rev 537603, python-sympy/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2019-12-14 00:44:03 UTC (rev 537604)
@@ -0,0 +1,64 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+# Contributor: Peter Garceau <RockyChimp at gmail.com>
+
+pkgbase=python-sympy
+pkgname=('python-sympy' 'python2-sympy')
+pkgver=1.5
+pkgrel=1
+arch=('any')
+pkgdesc='Symbolic manipulation package (Computer Algebra System), written in pure Python'
+url='https://sympy.org/en/index.html'
+license=('BSD')
+makedepends=('python2-mpmath' 'python-mpmath' 'python-setuptools' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/sympy/sympy/archive/sympy-$pkgver.tar.gz")
+sha512sums=('6d205c61e3ee651c46408746c32af30336ae26b6bbbf49a304f1228149d0de0cbe6ec41b5cc55b0edc163b0e0e6e4db88d19216d29ad5c8e366e6f45ba81b45e')
+
+prepare() {
+ cp -a sympy-sympy-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/sympy-sympy-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/sympy-sympy-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/sympy-sympy-$pkgver
+ python setup.py test || warning "Tests failed"
+
+ cd "$srcdir"/sympy-sympy-$pkgver-py2
+ python2 setup.py test || warning "Tests failed"
+}
+
+package_python-sympy() {
+ depends=('python-mpmath')
+ optdepends=('ipython: user friendly interface for isympy')
+
+ cd sympy-sympy-$pkgver
+
+ python setup.py install --root "$pkgdir" --optimize=1
+
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-sympy() {
+ depends=('python2-mpmath')
+ optdepends=('python2-pyglet: plotting'
+ 'ipython2: user friendly interface for isympy')
+
+ cd sympy-sympy-$pkgver-py2
+
+ python2 setup.py install --root "$pkgdir" --optimize=1
+
+ # rename files that exists in both 'python-sympy' and 'python2-sympy'
+ mv "$pkgdir"/usr/bin/isympy{,2}
+ mv "$pkgdir"/usr/share/man/man1/isympy{,2}.1
+
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list