Date: Wednesday, February 3, 2021 @ 20:53:54 Author: arojas Revision: 843612
archrelease: copy trunk to community-staging-x86_64 Added: sundials/repos/community-staging-x86_64/ sundials/repos/community-staging-x86_64/PKGBUILD (from rev 843611, sundials/trunk/PKGBUILD) ----------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) Copied: sundials/repos/community-staging-x86_64/PKGBUILD (from rev 843611, sundials/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-02-03 20:53:54 UTC (rev 843612) @@ -0,0 +1,34 @@ +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Elmar Klausmeier <elmar.klausme...@gmail.com> + +pkgname=sundials +pkgver=5.7.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://computation.llnl.gov/projects/sundials/download/$pkgname-$pkgver.tar.gz") +sha256sums=('8d6dd094feccbb8d6ecc41340ec16a65fabac82ed4415023f6d7c1c2390ea2f3') + +build() { + cmake -B build -S $pkgname-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_C_FLAGS="${CFLAGS} -fPIC -fcommon" \ + -DENABLE_MPI=ON \ + -DENABLE_PTHREAD=ON \ + -DENABLE_OPENMP=ON \ + -DBUILD_FORTRAN77_INTERFACE=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 +}