2011-12-13 06:26:09 -06:00

41 lines
879 B
Plaintext

# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=mathomatic
pkgver=15.7.1
pkgrel=0
pkgdesc="free software computer algebra system (CAS)"
url="http://www.mathomatic.org/math/"
arch="all"
license="LGPL"
depends="m4"
depends_dev="readline-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://mathomatic.org/mathomatic-$pkgver.tar.bz2
busybox.patch"
_builddir="$srcdir"/mathomatic-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
make READLINE=1 CC_OPTIMIZE="$CFLAGS" prefix="/usr"
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" prefix="/usr" m4install
}
md5sums="f8144e9c17edf688cbb296d20efaf808 mathomatic-15.7.1.tar.bz2
c8e6c51e094625c3912cbcf8f2bb21e8 busybox.patch"