1 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
6 pkgdesc="A high-level language, primarily intended for numerical computations."
7 url="http://www.octave.org"
10 depends=('fftw>=3.2.2' 'curl' 'fltk' 'hdf5' 'glpk' 'lapack' \
11 'graphicsmagick>=1.3.6' 'qrupdate')
12 makedepends=('pcre' 'mercurial' 'texinfo' 'gcc-fortran' 'git' 'gperf')
13 # For building the documentation, epstool and fig2dev are searched during build.
14 # The build works without them, but you may want to install
15 # transfig from [extra] and epstool from AUR
16 optdepends=('texinfo: for help-support in octave'
17 'gnuplot: alternative plotting')
18 conflicts=('octave' 'octave3' 'octave-suitsparse')
20 install=octave.install
21 options=('!emptydirs')
24 _hgroot=http://hg.savannah.gnu.org/hgweb
28 if [[ -d $srcdir/gnulib ]] ; then
29 msg2 "Connecting to Savannah for fetching new gnulib sources"
30 cd gnulib && git pull origin
31 msg "The gnulib files are updated."
34 msg2 "Connecting to Savannah for fetching all gnulib sources"
35 git clone git://git.savannah.gnu.org/gnulib.git gnulib
37 msg "Connecting to $_hgroot"
38 if [[ -d $_hgrepo ]]; then
41 msg2 "Finished updating the local repository!"
43 hg clone $_hgroot $_hgrepo
44 msg2 "Initial pull complete!"
49 [ -d ${_hgrepo}-build ] && rm -rf ${_hgrepo}-build
50 hg clone ${_hgrepo} ${_hgrepo}-build
53 ./autogen.sh --no-git --gnulib-srcdir=$srcdir/gnulib
54 sed -i 's+#include <curl/types.h>++' src/DLD-FUNCTIONS/urlwrite.cc
55 ./configure --prefix=/usr --libexecdir=/usr/lib --enable-shared
58 make DESTDIR=${pkgdir} install
61 ${pkgdir}/usr/share/applications/www.octave.org-octave.desktop \
62 ${pkgdir}/usr/share/applications/octave.desktop