PKGBUILDs/extra/maxima/PKGBUILD
2009-10-09 21:23:22 -05:00

39 lines
1.5 KiB
Bash

# $Id: PKGBUILD 53010 2009-09-25 01:16:03Z giovanni $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Damir Perisa <damir@archlinux.org>
pkgname=maxima
pkgver=5.19.2
pkgrel=3
pkgdesc="Maxima - a sophisticated computer algebra system"
arch=('i686' 'x86_64')
license=('GPL')
url="http://maxima.sourceforge.net"
depends=('sbcl>=1.0.31-2' '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=('c75eec2586f5be18e02978e70fac0b07'
'24aa81126fbb8b726854e5a80d4c2415')
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 || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
# install some freedesktop.org compatibility
install -Dm644 ${srcdir}/${pkgname}.desktop \
${pkgdir}/usr/share/applications/${pkgname}.desktop || return 1
# 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 || return 1
}