### this file is sourced not run
PKGVER=16.0.5
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=mathomatic-$PKGVER.tar.bz2
MD5SUM=dd04913a98a5073b56f3bc78a01820f3
SRC_URL=http://mathomatic.orgserve.de/$TARBALL
BUNDLE=

SLACKREQ="libreadline"
SLACKDESC="mathomatic: mathomatic $PKGVER (Computer Algebra System)
mathomatic: 
mathomatic: Mathomatic™ is a portable, command-line, educational CAS and 
mathomatic: calculator software, written entirely in the C programming language. 
mathomatic: The software can symbolically solve, simplify, combine, and compare 
mathomatic: algebraic equations, simultaneously performing generalized standard, 
mathomatic: complex number, modular, and polynomial arithmetic, as needed. It 
mathomatic: does some calculus too.
mathomatic: 
mathomatic: http://www.mathomatic.org/
mathomatic:
"
SLACKSUG=m4

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/mathomatic* &&
	make clean &&
	make $MAKEFLAGS READLINE=1 &&
	make m4install prefix=/usr &&
	pkg_build_slackdesc &&

	# fix desktop file
	sed -i -e 's/Exec=/&defaultterm -e /' /usr/share/applications/mathomatic.desktop
}


