summaryrefslogtreecommitdiff
path: root/community/mathomatic
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/mathomatic
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/mathomatic')
-rwxr-xr-xcommunity/mathomatic/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/mathomatic/PKGBUILD b/community/mathomatic/PKGBUILD
new file mode 100755
index 000000000..dc064a84f
--- /dev/null
+++ b/community/mathomatic/PKGBUILD
@@ -0,0 +1,41 @@
+# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
+# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
+# Maintainer: Thorsten Töpper <atsutane-tu@freethoughts.de>
+
+pkgname=mathomatic
+pkgver=15.5.0
+pkgrel=1
+pkgdesc="General purpose Computer Algebra System written in C"
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="http://mathomatic.orgserve.de/math/"
+depends=('readline')
+optdepends=('python2: for running /usr/share/doc/mathomatic/factorial/factorial'
+ 'bash: for running a test script'
+ 'gnuplot: for plotting')
+source=(http://mathomatic.org/$pkgname-$pkgver.tar.bz2)
+md5sums=('c04e16f5eec7b1eff500be947135cf74')
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ # python2 fix
+ for file in primes/{primorial,matho-sum,matho-mult} factorial/factorial; do
+ sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
+ sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
+ done
+
+ make READLINE=1
+ make test
+ cd "$srcdir"/$pkgname-$pkgver/primes
+ make
+ make test
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make prefix="$pkgdir"/usr install
+ cd "$srcdir"/$pkgname-$pkgver/primes
+ make prefix="$pkgdir"/usr install
+}
+