From addb43c66253b22211814af6e8c2c2c7faa39fc8 Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Thu, 29 Nov 2018 05:34:12 +0100 Subject: [PATCH] octave-hg: Add PKGBUILD --- octave-hg/.gitignore | 3 +++ octave-hg/PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 octave-hg/.gitignore create mode 100644 octave-hg/PKGBUILD diff --git a/octave-hg/.gitignore b/octave-hg/.gitignore new file mode 100644 index 0000000..e087cfe --- /dev/null +++ b/octave-hg/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!PKGBUILD diff --git a/octave-hg/PKGBUILD b/octave-hg/PKGBUILD new file mode 100644 index 0000000..7e19095 --- /dev/null +++ b/octave-hg/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Ronald van Haren +# Contributor : shining +# Contributor : cyberdune + +_pkgname=octave +pkgname=$_pkgname-hg +pkgver=r26145.64b972120ec3 +pkgrel=1 +conflicts=('octave') +provides=('octave') +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' 'arpack' 'glu' 'ghostscript' + 'suitesparse' 'gl2ps' 'qscintilla-qt5' 'libsndfile' 'qt5-tools' 'qrupdate') +makedepends=('gcc-fortran' 'texlive-core' 'suitesparse' 'texinfo' 'gnuplot' 'fltk' 'portaudio' 'jdk8-openjdk' 'mercurial') +optdepends=('texinfo: for help-support in octave' + 'gnuplot: alternative plotting' + 'portaudio: audio support' + 'java-runtime: java support' + 'fltk: FLTK GUI') +source=(hg+https://www.octave.org/hg/octave) +options=('!emptydirs') +validpgpkeys=('DBD9C84E39FE1AAE99F04446B05F05B75D36644B') # John W. Eaton +sha512sums=('SKIP') + +build() { + cd "${srcdir}/${_pkgname}" + + ./bootstrap + + export CFLAGS="-march=native -Ofast" + + ./configure --prefix=/usr --libexecdir=/usr/lib \ + --enable-shared --disable-static \ + --with-quantum-depth=16 \ + --with-umfpack="-lumfpack -lsuitesparseconfig" \ + --enable-jit +# https://mailman.cae.wisc.edu/pipermail/help-octave/2012-September/053991.html + + LANG=C make +} + +package(){ + cd "${srcdir}/${_pkgname}" + + 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" +} + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)" +}