updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / octave-suitesparse / PKGBUILD~
blobc18269579f78ee4c495c3c32203d4b6b56ea3170
1 # Maintainer : Marco Maso <demind@gmail.com>
3 pkgname=octave-suitesparse
4 pkgver=3.4.2
5 pkgrel=1
6 pkgdesc="A high-level language, primarily intended for numerical computations. Complete build against SuiteSparse"
7 arch=('i686' 'x86_64')
8 url="http://www.octave.org"
9 license=('GPL')
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')
22 build() {
23   cd "$srcdir/octave-$pkgver"
24   #mkdir src/pic
25   #./autogen.sh
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
34   make || return 1
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
40   # install info files
41   install -D -m644 doc/interpreter/octave.info* $pkgdir/usr/share/info
42   # fix desktop file
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
49   rm -f dir
50   gzip * || return 1