#Maintainer: Dimitris Jemos #Mandatory pkgname=mathomatic pkgver=15.3.7 pkgrel=1dj source=(http://mathomatic.org/$pkgname-$pkgver.tar.bz2) #Optional docs=() url=http://mathomatic.org/math/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Mathomatic (a small, portable Computer Algebra System)" "This is a console mode application that does symbolic math and" "quick calculations in a standard and generalized way." "Mathomatic is designed to be as general an easy to use as general." "It implements most of the rules of algebra for addition, subtraction," "multiplication, division, modulo division, and all forms of" "exponentiation. All arithmetic is double precision floating point" "with up to 14 decimal digits accuracy." "Homepage: http://mathomatic.org/math/" ) build() { cd $startdir/src/$pkgname-$pkgver || return 1 make mandir=/usr/man docdir=/usr/doc/$pkgname-$pkgver READLINE=1 || return 1 make test || return 1 make install \ prefix=$startdir/pkg/usr \ mandir=$startdir/pkg/usr/man \ docdir=$startdir/pkg/usr/doc/$pkgname-$pkgver || return 1 mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps || return 1 cp $startdir/pkg/usr/share/pixmaps/mathomatic.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps ||return 1 }