Date: Saturday, August 27, 2022 @ 16:40:32 Author: arojas Revision: 1284829
archrelease: copy trunk to community-staging-x86_64 Added: sundials/repos/community-staging-x86_64/ sundials/repos/community-staging-x86_64/PKGBUILD (from rev 1284828, sundials/trunk/PKGBUILD) ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Copied: sundials/repos/community-staging-x86_64/PKGBUILD (from rev 1284828, sundials/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-08-27 16:40:32 UTC (rev 1284829) @@ -0,0 +1,33 @@ +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Elmar Klausmeier <elmar.klausme...@gmail.com> + +pkgname=sundials +pkgver=6.3.0 +pkgrel=1 +pkgdesc='Suite of nonlinear differential/algebraic equation solvers' +arch=(x86_64) +url='https://computation.llnl.gov/casc/sundials/main.html' +license=(BSD) +depends=(openmpi suitesparse) +makedepends=(cmake gcc-fortran python) +source=(https://github.com/LLNL/sundials/archive/v$pkgver/$pkgname-$pkgver.tar.gz) +sha256sums=('f368abc99da305da0b1bc64386d350023d7c5ba2d5c689eee36cd7846e3096d1') + +build() { + cmake -B build -S $pkgname-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_STATIC_LIBS=OFF \ + -DENABLE_MPI=ON \ + -DENABLE_PTHREAD=ON \ + -DENABLE_OPENMP=ON \ + -DENABLE_KLU=ON \ + -DKLU_LIBRARY_DIR=/usr/lib \ + -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 +}