summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc68e307fcbe41b13887cc1de8bd425ac28553e9 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# $Id$
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor : shining <shiningxc.at.gmail.com>
# Contributor : cyberdune <cyberdune@gmail.com>

pkgname=octave-nogui
_name=octave
provides=(octave)
pkgver=4.4.1
pkgrel=1
pkgdesc="A high-level language, primarily intended for numerical computations."
arch=('x86_64')
url="http://www.octave.org"
license=('GPL')
depends=(
  'fftw'
  'curl'
  'glpk'
  'hdf5'
  'qhull'
  'arpack'
  'glu'
  'ghostscript'
  'suitesparse'
  'gl2ps'
  'libsndfile'
  'qrupdate'
  'blas'
  'sundials'
)
makedepends=(
  'gcc-fortran'
  'suitesparse'
  'gnuplot'
  'fltk'
  'portaudio'
  'jdk8-openjdk'
  'cblas'
  'gperf'
  'graphicsmagick'
  'lapack'
  # 'llvm' # will be used when jit compilation will be possible to be enabled - see https://savannah.gnu.org/bugs/?func=detailitem&item_id=52414
)
optdepends=(
  'gnuplot: alternative plotting'
  'portaudio: audio support'
  'java-runtime: java support'
  'fltk: FLTK GUI'
)
source=(ftp://ftp.gnu.org/gnu/octave/octave-$pkgver.tar.gz{,.sig})
options=('!emptydirs')
validpgpkeys=('DBD9C84E39FE1AAE99F04446B05F05B75D36644B')  # John W. Eaton
sha512sums=('21a1f13e2145fa530f2169254d19442b572745d65b91453ba1f552f6eda6aecfead57dbe0260b3293a29db0aa0f27cfd4f26df332e6d640848a822b20c1232f8'
            'SKIP')

prepare() {
  cd "${srcdir}/${_name}-${pkgver}"

  ./configure --prefix=/usr --libexecdir=/usr/lib \
  --enable-shared --disable-static \
  --without-qscintilla \
  --without-qt \
  --disable-jit \
  --with-blas=/usr/include \
  --with-suitesparse \
  --with-umfpack="-lumfpack -lsuitesparseconfig"
}

build() {
  cd "${srcdir}/${_name}-${pkgver}"
  LANG=C make
}

package(){
  cd "${srcdir}/${_name}-${pkgver}"

  make DESTDIR="${pkgdir}" install

  # add octave library path to ld.so.conf.d
  install -d "${pkgdir}/etc/ld.so.conf.d"
  echo "/usr/lib/${_name}/${pkgver}" > "${pkgdir}/etc/ld.so.conf.d/${_name}.conf"
}