From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/mathomatic/PKGBUILD | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 community/mathomatic/PKGBUILD (limited to 'community/mathomatic') diff --git a/community/mathomatic/PKGBUILD b/community/mathomatic/PKGBUILD new file mode 100644 index 000000000..d3067ade0 --- /dev/null +++ b/community/mathomatic/PKGBUILD @@ -0,0 +1,48 @@ +# $Id: PKGBUILD 79365 2012-11-03 16:31:24Z ttopper $ +# Contributor: G_Syme +# Contributor: Stefan Husmann +# Maintainer: Thorsten Töpper + +pkgname=mathomatic +pkgver=16.0.5 +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') +makedepends=('time') +optdepends=('python2: for running /usr/share/doc/mathomatic/factorial/factorial' + 'bash: for running a test script' + 'm4: for complex operations using the matho script' + 'rlwrap: for readline editing' + 'gnuplot: for plotting') +source=(http://mathomatic.org/$pkgname-$pkgver.tar.bz2) +md5sums=('dd04913a98a5073b56f3bc78a01820f3') + +build() { + cd "$srcdir"/$pkgname-$pkgver + + # python2 fix + for file in primes/{primorial,matho-sum,matho-mult} examples/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 m4install + sed -i 's+/build/pkg++' "$pkgdir"/usr/bin/matho + + cd "$srcdir"/$pkgname-$pkgver/primes + make prefix="$pkgdir"/usr install +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf