mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 19:47:13 +08:00
57 lines
1.8 KiB
Bash
57 lines
1.8 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=maxima
|
|
pkgver=5.25.1
|
|
pkgrel=2
|
|
pkgdesc="Maxima - a sophisticated Computer Algebra System."
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL')
|
|
url="http://maxima.sourceforge.net"
|
|
depends=('sbcl' '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=('f2a7399e53eadc38e0bedb843d5d7055'
|
|
'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
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
# install some freedesktop.org compatibility
|
|
install -Dm644 "${srcdir}/${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"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|