mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 14:54:37 +08:00
51 lines
1.2 KiB
Bash
51 lines
1.2 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
|
|
pkgname=octave
|
|
pkgver=3.8.1
|
|
pkgrel=1
|
|
pkgdesc="A high-level language, primarily intended for numerical computations."
|
|
arch=('x86_64')
|
|
url="http://www.octave.org"
|
|
license=('GPL')
|
|
depends=('fftw' 'curl' 'graphicsmagick' 'glpk' 'hdf5' 'qhull' 'fltk' 'suitesparse' 'arpack' 'pcre')
|
|
makedepends=('texlive-core' 'gcc-fortran')
|
|
optdepends=('texinfo: for help-support in octave'
|
|
'gnuplot: alternative plotting'
|
|
'qscintilla: experimental gui')
|
|
source=(ftp://ftp.gnu.org/gnu/octave/octave-$pkgver.tar.bz2{,.sig})
|
|
options=('!emptydirs')
|
|
install='octave.install'
|
|
sha1sums=('2951aeafe58d562672feb80dd8c3cfe0643a5087'
|
|
'SKIP')
|
|
|
|
prepare() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
autoreconf -vfi
|
|
}
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
./configure --prefix=/usr \
|
|
--libexecdir=/usr/lib \
|
|
--enable-shared \
|
|
--enable-docs=no \
|
|
--disable-static \
|
|
--with-umfpack="-lumfpack -lsuitesparseconfig"
|
|
|
|
LANG=C make
|
|
}
|
|
|
|
package(){
|
|
cd "${srcdir}/${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"
|
|
}
|