maxima: moved to desktop and updated to 5.41.0

This commit is contained in:
Francesco Marinucci 2018-07-27 11:47:29 +02:00
parent 22e0015cae
commit 2145f3d997
3 changed files with 77 additions and 0 deletions

48
maxima/PKGBUILD Normal file
View File

@ -0,0 +1,48 @@
pkgname=maxima
pkgver=5.41.0
pkgrel=1
pkgdesc="Maxima - a sophisticated Computer Algebra System."
arch=('x86_64')
license=('GPL')
url="http://maxima.sourceforge.net"
# needs rebuild when bash and sbcl changes version
depends=('sbcl' 'texinfo' 'sh')
makedepends=('python2' 'emacs-nox')
optdepends=('gnuplot: plotting capabilities' \
'rlwrap: readline support via /usr/bin/rmaxima' \
'tk: graphical xmaxima interface')
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=('972c51384d7895c88d78eb045c6aedb2'
'24aa81126fbb8b726854e5a80d4c2415')
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--libexecdir=/usr/lib \
--enable-sbcl \
--with-default-lisp=sbcl
# help avoid (re)running makeinfo/tex
touch doc/info/maxima.info
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir emacsdir=/usr/share/emacs/site-lisp/maxima install
# install some freedesktop.org compatibility
install -Dm644 ../$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
}

11
maxima/maxima.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Name=XMaxima
GenericName=A computer algebra system
GenericName[de]=Computeralgebra System
GenericName[it]=algebra a livello avanzato
Comment=A sophisticated computer algebra system
Exec=xmaxima
Icon=maxima
Terminal=true
Type=Application
Categories=Science;Math;

18
maxima/maxima.install Normal file
View File

@ -0,0 +1,18 @@
infodir=/usr/share/info
filelist=(imaxima.info maxima.info xmaxima.info)
post_install() {
for file in ${filelist[@]}; do
install-info $infodir/$file $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
for file in ${filelist[@]}; do
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
done
}