void-packages/srcpkgs/maxima/template

54 lines
1.5 KiB
Text
Raw Normal View History

2014-03-16 20:38:36 +00:00
# Template file for 'maxima'
pkgname=maxima
version=5.35.1
2014-03-16 20:38:36 +00:00
revision=1
build_style=gnu-configure
hostmakedepends="python perl emacs"
makedepends="clisp readline-devel"
depends="clisp"
replaces="maxima<5.34.1_1"
2014-03-16 20:38:36 +00:00
short_desc="Computer Algebra System"
maintainer="Martin Riese <grauehaare@gmx.de>"
homepage="http://maxima.sourceforge.net/"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/maxima/maxima-${version}.tar.gz"
checksum=9ed1a996afdf7410a932842801c954c53b003983d07bafd7a1ea999fbcda98f3
maxima-src_package() {
noarch=yes
replaces="maxima<5.34.1_1"
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - source files"
pkg_install() {
vmove usr/share/maxima/${version}/src
}
}
maxima-emacs_package() {
noarch=yes
replaces="maxima<5.34.1_1"
short_desc+=" - Emacs interface"
depends="${sourcepkg}>=${version}_${revision} virtual?emacs"
pkg_install() {
vmove usr/share/maxima/${version}/emacs
vmkdir usr/share/emacs/site-lisp
ln -sf /usr/share/maxima/${version}/emacs \
${PKGDESTDIR}/usr/share/emacs/site-lisp/maxima
}
}
xmaxima_package() {
replaces="maxima<5.34.1_1"
short_desc+=" - Tk interface"
depends="${sourcepkg}>=${version}_${revision} tk"
pkg_install() {
vmove usr/bin/xmaxima
vmove usr/share/maxima/${version}/xmaxima
vmove usr/share/info/xmaxima.info
vinstall ${FILESDIR}/maxima.desktop 644 usr/share/applications
vmkdir usr/share/pixmaps
ln -sf /usr/share/maxima/${version}/xmaxima/maxima-new.png \
${PKGDESTDIR}/usr/share/pixmaps/maxima
}
}