### this file is sourced not run
PKGVER=5.1.0
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=octave-$PKGVER.tar.xz
MD5SUM=7a409f9f55ed6911b1bb51e07ef17c7f
SRC_URL=https://ftpmirror.gnu.org/octave/octave-$PKGVER.tar.xz
BUNDLE=

SLACKREQ='liblapack curl libfftw3f libfftw3 fontconfig qt5-common less
libpcre libportaudio fltk graphicsmagick libreadline gnuplot-qt5
libgl2ps libqscintilla2 libglpk libqrupdate libarpack libqhull libhdf5'
# build-time deps: libamd libcamd libcolamd libccolamd libcholmod

SLACKDESC="octave: octave $PKGVER (Numerical Computing)
octave: 
octave: GNU Octave is a high-level interpreted language, primarily intended 
octave: for numerical computations. It provides capabilities for the 
octave: numerical solution of linear and nonlinear problems, and for 
octave: performing other numerical experiments. It also provides extensive 
octave: graphics capabilities for data visualization and manipulation. The 
octave: Octave language is quite similar to Matlab so that most programs are 
octave: easily portable.
octave: 
octave: https://www.gnu.org/software/octave/
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	# qt5	
	export PATH="$PATH:/opt/qt5/bin"
	export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/qt5/$LIBDIR"
	export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/qt5/$LIBDIR/pkgconfig"
	export QT5_PATH="/opt/qt5/bin"
	export QT5_LD_LIBRARY_PATH="/opt/qt5/$LIBDIR"
	export QT5_PKG_CONFIG_PATH="/opt/qt5/$LIBDIR/pkgconfig"
	export QT5_CPLUS_INCLUDE_PATH="/opt/qt5/include" 
	export LDFLAGS="-L/opt/qt5/$LIBDIR"
	
	pkg_build_autoconf &&
	pkg_build_slackdesc
}
