1 # Maintainer : Marco Maso <demind@gmail.com>
3 pkgname=octave-suitesparse
6 pkgdesc="A high-level language, primarily intended for numerical computations. Complete build against SuiteSparse"
8 url="http://www.octave.org"
10 depends=('gcc-libs>=4.3.0' 'readline' 'fftw' 'zlib' 'pcre' 'curl'
11 'gperf' 'qhull' 'glpk' 'hdf5' 'gnuplot' 'suitesparse>=3.2.0' 'fltk' 'ftgl' 'graphicsmagick' 'arpack' 'qrupdate')
12 makedepends=('texinfo')
13 optdepends=('texinfo: for help-support in octave'
14 'gnuplot: to be able to plot in octave')
15 provides=('octave=3.2.2' 'octave3')
16 conflicts=('octave-devel' 'octave3' 'octave')
17 source=("ftp://ftp.octave.org/gnu/octave/octave-$pkgver.tar.bz2")
18 md5sums=('31c744ab4555a2bf04d5e644b93f9b51')
19 install=octave.install
20 options=('!emptydirs' 'docs')
23 cd "$srcdir/octave-$pkgver"
27 # http://www.nabble.com/Random-rounding-errors-td16010966.html
28 FFLAGS="-O2" #-ffloat-store"
30 # http://www.nabble.com/Build-Octave-3.0.0-with-HDF5-1.8.0-td16517191.html
31 LDFLAGS="-lpthread" CPPFLAGS="-DH5_USE_16_API" ./configure --prefix=/usr --libexecdir=/usr/lib \
32 --with-lapack=/usr/lib --enable-shared --disable-static
35 make DESTDIR="$pkgdir" install
37 # install icon in the correct place
38 install -D -m644 examples/octave-sombrero.png \
39 $pkgdir/usr/share/pixmaps/octave.png
41 install -D -m644 doc/interpreter/octave.info* $pkgdir/usr/share/info
43 cd $pkgdir/usr/share/applications/
44 mv www.octave.org-octave.desktop octave.desktop
45 sed -i "s#/usr/bin/##" octave.desktop
46 sed -i "s#^Icon=.*#Icon=octave.png#" octave.desktop
48 cd $pkgdir/usr/share/info