desktop/octave/PKGBUILD

42 lines
1.2 KiB
Bash
Raw Normal View History

pkgname=octave
2018-03-20 07:28:42 +08:00
pkgver=4.2.2
pkgrel=1
pkgdesc="A high-level language, primarily intended for numerical computations."
arch=('x86_64')
url="http://www.octave.org"
license=('GPL')
2016-03-29 15:40:52 +08:00
depends=('readline' 'glu' 'fftw' 'curl' 'graphicsmagick' 'glpk' 'hdf5' 'qhull' 'fltk'
2018-03-20 07:28:42 +08:00
'suitesparse' 'arpack' 'pcre' 'qt5-base' 'fontconfig' 'zlib' 'portaudio' 'qrupdate' 'freetype2' 'gl2ps'
'qscintilla-qt5' 'libsndfile')
makedepends=('texlive-core' 'gcc-fortran' 'texinfo' 'gnuplot' 'openjdk')
optdepends=('texinfo: for help-support in octave'
'gnuplot: alternative plotting'
'openjdk: to call Java functions')
2018-03-20 07:28:42 +08:00
source=(ftp://ftp.gnu.org/gnu/octave/octave-$pkgver.tar.gz)
install='octave.install'
2018-03-20 07:28:42 +08:00
sha1sums=('d7911a9932b31c720cedc22e78e4ad0aa1d1834b')
build() {
2016-05-05 16:15:42 +08:00
cd $pkgname-$pkgver
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--enable-shared \
--disable-static \
2018-03-20 07:28:42 +08:00
--with-quantum-depth=16 \
--with-umfpack="-lumfpack -lsuitesparseconfig"
MOC=moc UIC=uic
LANG=C make
}
package(){
2016-05-05 16:15:42 +08:00
cd $pkgname-$pkgver
2016-05-05 16:15:42 +08:00
make DESTDIR=$pkgdir install
# add path to ld.so.conf.d
2016-05-05 16:15:42 +08:00
install -d $pkgdir/etc/ld.so.conf.d
echo "/usr/lib/$pkgname/$pkgver" > "$pkgdir/etc/ld.so.conf.d/$pkgname.conf"
}