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

# source: james
TARBALL=sundials-ida-$PKGVER.tar.gz
MD5SUM=7208955ae71a0534e076b65d575c9dd2
SRC_URL=https://github.com/LLNL/sundials/releases/download/v6.5.1/ida-$PKGVER.tar.gz
BUNDLE=

SLACKREQ='libsuitesparse libblas'
SLACKDESC="libsundials_ida: libsundials_ida $PKGVER (Differential equation solver)
libsundials_ida: 
libsundials_ida: IDA is a package for the solution of differential-algebraic equation 
libsundials_ida: (DAE) systems in the form F(t,y,y')=0.
libsundials_ida:
libsundials_ida: https://computing.llnl.gov/projects/sundials/ida
libsundials_ida:
libsundials_ida: 
libsundials_ida: 
libsundials_ida: 
libsundials_ida: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CMAKEFLAGS="$CMAKEFLAGS   \
		-DENABLE_KLU=ON       \
		-DKLU_INCLUDE_DIR=/usr/include/suitesparse \
		-DKLU_LIBRARY_DIR=/usr/$LIBDIR \
		-DENABLE_LAPACK=ON \
		-D_BUILD_EXAMPLES=OFF \
	" &&
	pkg_build_cmake &&
	pkg_build_slackdesc
}

