2013-01-05 10:36:47 +08:00
|
|
|
# maintainer abveritas[at]chakra-project[dot]org>
|
2010-09-28 01:43:23 +08:00
|
|
|
|
|
|
|
pkgname=maxima
|
2012-09-13 23:32:51 +08:00
|
|
|
pkgver=5.28.0
|
2013-01-05 10:36:47 +08:00
|
|
|
pkgrel=2
|
2011-10-28 07:19:05 +08:00
|
|
|
pkgdesc="Maxima - a sophisticated Computer Algebra System."
|
2013-01-05 10:36:47 +08:00
|
|
|
arch=('x86_64')
|
2010-09-28 01:43:23 +08:00
|
|
|
license=('GPL')
|
|
|
|
url="http://maxima.sourceforge.net"
|
2013-03-25 10:14:02 +08:00
|
|
|
# needs rebuild when bash and sbcl changes version
|
2012-01-16 07:06:13 +08:00
|
|
|
depends=('sbcl' 'texinfo' 'sh')
|
2010-09-28 01:43:23 +08:00
|
|
|
optdepends=('gnuplot: plotting capabilities' \
|
2011-10-28 07:19:05 +08:00
|
|
|
'rlwrap: readline support via /usr/bin/rmaxima' \
|
|
|
|
'tk: graphical xmaxima interface')
|
2013-03-25 10:14:02 +08:00
|
|
|
|
2010-09-28 01:43:23 +08:00
|
|
|
options=('!makeflags' '!zipman') # don't zip info pages or they won't work inside maxima
|
2011-10-28 07:19:05 +08:00
|
|
|
install="maxima.install"
|
|
|
|
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
|
|
|
"${pkgname}.desktop")
|
2012-09-13 23:32:51 +08:00
|
|
|
md5sums=('de12d5081194325f0336abef263e7263'
|
2011-10-28 07:19:05 +08:00
|
|
|
'24aa81126fbb8b726854e5a80d4c2415')
|
2010-09-28 01:43:23 +08:00
|
|
|
|
|
|
|
build() {
|
2011-10-28 07:19:05 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libexecdir=/usr/lib \
|
2012-01-16 07:06:13 +08:00
|
|
|
--enable-sbcl \
|
|
|
|
--with-default-lisp=sbcl
|
2011-10-28 07:19:05 +08:00
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2012-09-13 23:32:51 +08:00
|
|
|
|
2010-09-28 01:43:23 +08:00
|
|
|
# install some freedesktop.org compatibility
|
2011-10-28 07:19:05 +08:00
|
|
|
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
2012-09-13 23:32:51 +08:00
|
|
|
|
2011-10-28 07:19:05 +08:00
|
|
|
# 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"
|
2010-09-28 01:43:23 +08:00
|
|
|
}
|