1 # $Id: PKGBUILD 142503 2011-11-10 20:08:23Z ronald $
2 # Maintainer: Ronald van Haren <ronald.archlinux.org>
3 # Contributor: Damir Perisa <damir@archlinux.org>
11 pkgdesc="Maxima - a sophisticated computer algebra system; compiled against Embeddable Common Lisp, so it does compile on ARM port of Arch Linux"
12 arch=('arm' 'i686' 'x86_64')
14 url="http://maxima.sourceforge.net"
15 depends=('ecl' 'texinfo' 'sh')
16 makedepends=('python2')
17 optdepends=('gnuplot: plotting capabilities' 'rlwrap: readline support via /usr/bin/rmaxima' 'tk: graphical xmaxima interface')
18 # needs rebuild when bash changes version
19 # needs a rebuild when sbcl changes version
20 options=('!makeflags' '!zipman') # don't zip info pages or they won't work inside maxima
21 install=maxima.install
22 source=("http://downloads.sourceforge.net/sourceforge/$origname/$origname-$pkgver.tar.gz" "$origname.desktop")
23 sha1sums=('9c9ea66434c9ca96549092c3640c3ba5a4fba44b'
24 '4398ebb1ec85ccfa12f37516a56d60c26f74b18b')
27 cd ${srcdir}/${origname}-${pkgver}
29 # set correct python executable to create docs
30 sed -i "s|${PYTHONBIN:-python}|python2|" doc/info/extract_categories.sh
32 ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info \
33 --libexecdir=/usr/lib --enable-ecl --with-default-lisp=ecl
39 cd ${srcdir}/${origname}-${pkgver}
40 make DESTDIR=${pkgdir} install
42 # install some freedesktop.org compatibility
43 install -Dm644 ${srcdir}/${origname}.desktop \
44 ${pkgdir}/usr/share/applications/${origname}.desktop
46 # make sure, we have a nice icon for the desktop file at the right place ;)
47 install -d ${pkgdir}/usr/share/pixmaps/
48 ln -s /usr/share/maxima/${pkgver}/xmaxima/maxima-new.png \
49 ${pkgdir}/usr/share/pixmaps/${origname}.png