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.6.1' '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.4.3' 'octave3')
16 conflicts=('octave-devel' 'octave3' 'octave')
17 source=("ftp://ftp.gnu.org/gnu/octave/octave-$pkgver.tar.bz2")
18 md5sums=('185b08f4e4a7b646d76e4d33b77fa87e')
19 install=octave.install
20 options=('!emptydirs' 'docs')
23 cd "$srcdir/octave-$pkgver"
25 ./configure --prefix=/usr --libexecdir=/usr/lib --with-lapack=/usr/lib --enable-shared --disable-static \
26 --with-{qrupdate,amd,camd,colamd,ccolamd,cholmod,cxsparse,umfpack}-libdir=/usr/lib \
27 --with-{qrupdate,amd,camd,colamd,ccolamd,cholmod,cxsparse,umfpack}-includedir=/usr/include
33 cd "$srcdir/octave-$pkgver"
34 make DESTDIR="$pkgdir" install
36 # install icon in the correct place
37 install -D -m644 doc/icons/octave-sombrero.png \
38 $pkgdir/usr/share/pixmaps/octave.png
40 install -D -m644 doc/interpreter/octave.info* $pkgdir/usr/share/info
42 cd $pkgdir/usr/share/applications/
43 mv www.octave.org-octave.desktop octave.desktop
44 sed -i "s#/usr/bin/##" octave.desktop
45 sed -i "s#^Icon=.*#Icon=octave.png#" octave.desktop
47 cd $pkgdir/usr/share/info