void-packages/srcpkgs/maxima/template

53 lines
1.5 KiB
Bash
Raw Normal View History

2014-03-16 21:38:36 +01:00
# Template file for 'maxima'
pkgname=maxima
2015-05-07 17:38:28 +02:00
version=5.36.1
2014-03-16 21:38:36 +01:00
revision=1
build_style=gnu-configure
hostmakedepends="python perl emacs"
makedepends="clisp readline-devel"
depends="clisp"
2014-03-16 21:38:36 +01: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"
2015-05-07 17:38:28 +02:00
checksum=400bf83000b84d280d75e200e078582fe44f23220824562cc06c589d8a993974
2015-04-23 15:03:00 +02:00
post_install() {
vmkdir usr/share/doc
ln -sf ../maxima/${version}/doc ${DESTDIR}/usr/share/doc/maxima
}
maxima-src_package() {
noarch=yes
2015-04-23 15:03:00 +02:00
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - source files"
pkg_install() {
vmove usr/share/maxima/${version}/src
}
}
maxima-emacs_package() {
noarch=yes
short_desc+=" - Emacs interface"
2015-04-23 15:03:00 +02:00
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() {
short_desc+=" - Tk interface"
2015-04-23 15:03:00 +02:00
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
}
}