diff options
author | root <root@rshg054.dnsready.net> | 2012-02-09 23:14:54 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-09 23:14:54 +0000 |
commit | 4bc61018eec54dbe50e7556ce01d2ef2859b2c9f (patch) | |
tree | 3ea5705a573fd320639395f484fc12335e0a1b88 /testing/octave/PKGBUILD | |
parent | 54b7119c36756b86ea463649ee972cd6c1ce5863 (diff) |
Thu Feb 9 23:14:54 UTC 2012
Diffstat (limited to 'testing/octave/PKGBUILD')
-rw-r--r-- | testing/octave/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/octave/PKGBUILD b/testing/octave/PKGBUILD new file mode 100644 index 000000000..efdc54153 --- /dev/null +++ b/testing/octave/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 149675 2012-02-08 23:59:49Z allan $ +# Maintainer: Ronald van Haren <ronald.archlinux.org> +# Contributor : shining <shiningxc.at.gmail.com> +# Contributor : cyberdune <cyberdune@gmail.com> + +pkgname=octave +pkgver=3.4.3 +pkgrel=2 +pkgdesc="A high-level language, primarily intended for numerical computations." +arch=('i686' 'x86_64') +url="http://www.octave.org" +license=('GPL') +depends=('fftw' 'pcre' 'curl' 'lapack' 'libx11' 'graphicsmagick' 'glpk' 'hdf5' 'gcc-libs' 'qhull') +makedepends=('texinfo' 'graphicsmagick' 'gcc-fortran' 'umfpack' 'texlive-core' 'fltk') +optdepends=('texinfo: for help-support in octave' + 'gnuplot: alternative plotting' + 'umfpack: LU decomposition of some large sparse matrices' + 'fltk: alternative plotting') +source=("ftp://ftp.gnu.org/gnu/octave/octave-$pkgver.tar.bz2") +options=('!emptydirs') +install=octave.install +sha1sums=('fe622c28a38f8730c59e46211bc7b18e7f51a679') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + # http://www.nabble.com/Random-rounding-errors-td16010966.html + FFLAGS="-O -ffloat-store" \ + + ./configure --prefix=/usr --libexecdir=/usr/lib \ + --enable-shared --disable-static --with-quantum-depth=16 + + LANG=C make +} + +package(){ + cd ${srcdir}/${pkgname}-${pkgver} + + make DESTDIR="${pkgdir}" install + + # add octave library path to ld.so.conf.d + install -d ${pkgdir}/etc/ld.so.conf.d + echo "/usr/lib/${pkgname}-${pkgver}" > ${pkgdir}/etc/ld.so.conf.d/${pkgname}.conf +} |