desktop/octave/PKGBUILD
2016-07-21 13:07:07 +01:00

42 lines
1.1 KiB
Bash

pkgname=octave
pkgver=4.0.3
pkgrel=2
pkgdesc="A high-level language, primarily intended for numerical computations."
arch=('x86_64')
url="http://www.octave.org"
license=('GPL')
depends=('readline' 'glu' 'fftw' 'curl' 'graphicsmagick' 'glpk' 'hdf5' 'qhull' 'fltk'
'suitesparse' 'arpack' 'pcre' 'qt' 'fontconfig' 'zlib' 'qrupdate' 'freetype2' 'qscintilla' 'gl2ps')
makedepends=('texlive-core' 'gcc-fortran' 'texinfo' 'gnuplot' 'openjdk')
optdepends=('texinfo: for help-support in octave'
'gnuplot: alternative plotting'
'openjdk: to call Java functions')
source=(ftp://ftp.gnu.org/gnu/octave/octave-$pkgver.tar.xz)
install='octave.install'
sha1sums=('c798346a8271e0141d9dbe5610584dabb8311277')
build() {
cd $pkgname-$pkgver
autoreconf -vfi
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--enable-shared \
--disable-static \
--with-umfpack="-lumfpack -lsuitesparseconfig"
MOC=moc UIC=uic
LANG=C make
}
package(){
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
# add 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"
}