core/octave/PKGBUILD

44 lines
1.1 KiB
Bash
Raw Normal View History

2010-10-12 06:31:40 +08:00
pkgname=octave
2015-06-02 20:06:10 +08:00
pkgver=4.0.0
pkgrel=1
2010-10-12 06:31:40 +08:00
pkgdesc="A high-level language, primarily intended for numerical computations."
arch=('x86_64')
2010-10-12 06:31:40 +08:00
url="http://www.octave.org"
license=('GPL')
2015-06-02 20:06:10 +08:00
depends=('fftw' 'curl' 'graphicsmagick' 'glpk' 'hdf5' 'qhull' 'fltk' 'suitesparse' 'arpack' 'pcre' 'qt')
makedepends=('texlive-core' 'gcc-fortran' 'texinfo' 'gnuplot')
optdepends=('texinfo: for help-support in octave'
2015-06-02 20:06:10 +08:00
'gnuplot: alternative plotting')
source=(ftp://ftp.gnu.org/gnu/octave/octave-$pkgver.tar.xz{,.sig})
2010-10-12 06:31:40 +08:00
options=('!emptydirs')
install='octave.install'
2015-06-02 20:06:10 +08:00
sha1sums=('795c7ef1fb8d92f4cf9cae9eabba374a0328b1a9'
2014-07-06 05:03:42 +08:00
'SKIP')
2010-10-12 06:31:40 +08:00
prepare() {
2010-10-12 06:31:40 +08:00
cd ${srcdir}/${pkgname}-${pkgver}
autoreconf -vfi
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--enable-shared \
--disable-static \
--with-umfpack="-lumfpack -lsuitesparseconfig"
LANG=C make
}
2010-10-12 06:31:40 +08:00
package(){
cd "${srcdir}/${pkgname}-${pkgver}"
2010-10-12 06:31:40 +08:00
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"
2010-10-12 06:31:40 +08:00
}