updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / octave-suitesparse / PKGBUILD
blobdf5bac2c233b203d562a5b94436eadb84a18f94b
1 # Maintainer : Marco Maso <demind@gmail.com>
3 pkgname=octave-suitesparse
4 pkgver=3.4.3
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.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')
22 build() {
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
29 make
32 package() {
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
39 # install info files
40 install -D -m644 doc/interpreter/octave.info* $pkgdir/usr/share/info
41 # fix desktop file
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
48 rm -f dir
49 gzip *