summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a69bf3224f33b6ad3b37a377d22ba8102fc38985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=maxima-git
pkgver=5.47.1.111.g3f7ab0c6b
pkgrel=1
pkgdesc="Sophisticated computer algebra system - git-version"
arch=('i686' 'x86_64')
url="http://maxima.sourceforge.net"
license=('GPL')
depends=('sbcl' 'sh' 'shared-mime-info')
makedepends=('git' 'perl' 'python' 'texlive-core' 'texinfo')
optdepends=('gnuplot: plotting capabilities'
	    'rlwrap: readline support via /usr/bin/rmaxima'
	    'tk: graphical xmaxima interface')
provides=('maxima')
conflicts=('maxima')
options=('!makeflags' '!zipman')
source=('maxima::git://git.code.sf.net/p/maxima/code' 'maxima.desktop' nohtml.patch)
sha256sums=('SKIP'
            'd7ba38d5f35a6322b569e33a132eecf2fba36d4bc124ba75caa8e57f81753c20'
            'd1a2b8e047280ee360e6dc234f81710c77c5f9cb38bd08dc13690b358538d1e5')

pkgver() {
  cd ${pkgname%-git}
  git describe --always | sed 's+[_-]+.+g' | sed 's+base+1+' | cut -c8- 
}

prepare() {
  cd ${pkgname%-git}
  git apply "$srcdir"/nohtml.patch
}

build() {
  cd ${pkgname%-git}
  ./bootstrap
  ./configure --prefix=/usr --mandir=/usr/share/man \
    --infodir=/usr/share/info  --libexecdir=/usr/lib \
    --enable-sbcl --with-default-lisp=sbcl
  make
}

package() {
  cd ${pkgname%-git}
  _pkgver=$(git describe --always | sed 's+-+_+g')
  make DESTDIR="$pkgdir" \
       emacsdir=/usr/share/emacs/site-lisp/maxima install  
  install -Dm644 "$srcdir"/maxima.desktop \
  	  "$pkgdir"/usr/share/applications/${pkgname}.desktop
}