# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=mathomatic
pkgver=14.5.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')
optdepends=('python: for running /usr/share/doc/mathomatic/factorial/factorial' 'bash: for running a test script')
source=(http://www.panix.com/~gesslein/$pkgname-$pkgver.tar.bz2)
md5sums=('f2e3ee1eb0b365e6dabda848acdce99f')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  make READLINE=1 || return 1
  make prefix="$pkgdir"/usr install || return 1

  cd primes
  make || return 1
  make prefix="$pkgdir"/usr install || return 1
}