summaryrefslogtreecommitdiff
path: root/community/python-sympy/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/python-sympy/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/python-sympy/PKGBUILD')
-rw-r--r--community/python-sympy/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/community/python-sympy/PKGBUILD b/community/python-sympy/PKGBUILD
new file mode 100644
index 000000000..bc3221a2a
--- /dev/null
+++ b/community/python-sympy/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+# Contributor: Peter Garceau <RockyChimp@gmail.com>
+pkgname=python-sympy
+pkgver=0.6.7
+pkgrel=2
+pkgdesc="Symbolic manipulation package (Computer Algebra System), written in pure Python"
+url="http://code.google.com/p/sympy"
+license=('BSD')
+depends=('python2')
+conflicts=('sympy')
+provides=('sympy')
+arch=('i686' 'x86_64')
+source=(http://sympy.googlecode.com/files/sympy-${pkgver}.tar.gz)
+md5sums=('d73e0a5a128f38f930d566110f4b668b')
+
+build() {
+ cd "${srcdir}/sympy-${pkgver}"
+
+ # python2 fix
+ for file in sympy/galgebra/GA.py sympy/galgebra/tests/test_GA.py; do
+ sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' $file
+ done
+ sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' sympy/mpmath/tests/runtests.py
+
+ python2 setup.py install --root "${pkgdir}"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}