54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
# Template file for 'maxima'
|
|
pkgname=maxima
|
|
version=5.37.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="python perl emacs"
|
|
makedepends="clisp readline-devel"
|
|
depends="clisp"
|
|
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=499e14355019c597406271188e6c49cd0609af633d0782980198745d8da876d1
|
|
|
|
post_install() {
|
|
vmkdir usr/share/doc
|
|
ln -sf ../maxima/${version}/doc ${DESTDIR}/usr/share/doc/maxima
|
|
}
|
|
|
|
maxima-src_package() {
|
|
noarch=yes
|
|
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"
|
|
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() {
|
|
noarch=yes
|
|
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
|
|
}
|
|
}
|