pkgname=sundials-seq _pkgname=sundials pkgver=7.0.0 pkgrel=1 pkgdesc='Suite of nonlinear differential/algebraic equation solvers (sequential version)' arch=(x86_64) url='https://computing.llnl.gov/projects/sundials' license=(BSD) depends=(suitesparse) makedepends=(cmake gcc-fortran python) source=(https://github.com/LLNL/sundials/archive/v$pkgver/$_pkgname-$pkgver.tar.gz) sha256sums=('63d1f76207161612f36f5017d8333e00e5297b0cd8cbc4628f5dd54102c763a6') provides=(sundials) conflicts=(sundials) build() { cmake -B build -S $_pkgname-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_STATIC_LIBS=OFF \ -DENABLE_MPI=OFF \ -DENABLE_PTHREAD=ON \ -DENABLE_OPENMP=ON \ -DENABLE_KLU=ON \ -DKLU_LIBRARY_DIR=/usr/lib \ -DKLU_INCLUDE_DIR=/usr/include/suitesparse \ -DEXAMPLES_ENABLE_C=OFF \ -DEXAMPLES_INSTALL_PATH=/usr/share/sundials/examples cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -Dm644 $_pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$_pkgname }