# $Id: PKGBUILD 117234 2011-03-30 11:00:13Z juergen $ # Maintainer: Ronald van Haren # Contributor: Damir Perisa pkgname=maxima pkgver=5.23.2 pkgrel=3 pkgdesc="Maxima - a sophisticated computer algebra system" arch=('i686' 'x86_64' 'mips64el') license=('GPL') url="http://maxima.sourceforge.net" depends=('sbcl=1.0.47' 'texinfo' 'sh') optdepends=('gnuplot: plotting capabilities' 'rlwrap: readline support via /usr/bin/rmaxima' 'tk: graphical xmaxima interface') # needs rebuild when bash changes version # needs a rebuild when sbcl changes version options=('!makeflags' '!zipman') # don't zip info pages or they won't work inside maxima install=maxima.install source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz" "$pkgname.desktop") md5sums=('ae2f2eaca33de95636e36652ed281902' '24aa81126fbb8b726854e5a80d4c2415') sha1sums=('f7300058faf730ce6cf63c18e59ec068df01b4a6' '4398ebb1ec85ccfa12f37516a56d60c26f74b18b') build() { cd ${srcdir}/${pkgname}-${pkgver} ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info \ --libexecdir=/usr/lib --enable-sbcl --with-default-lisp=sbcl make make DESTDIR=${pkgdir} install # install some freedesktop.org compatibility install -Dm644 ${srcdir}/${pkgname}.desktop \ ${pkgdir}/usr/share/applications/${pkgname}.desktop # make sure, we have a nice icon for the desktop file at the right place ;) install -d ${pkgdir}/usr/share/pixmaps/ ln -s /usr/share/maxima/${pkgver}/xmaxima/maxima-new.png \ ${pkgdir}/usr/share/pixmaps/${pkgname}.png }