Date: Wednesday, January 12, 2022 @ 20:46:40
  Author: arojas
Revision: 1101745

archrelease: copy trunk to community-staging-x86_64

Added:
  sundials/repos/community-staging-x86_64/
  sundials/repos/community-staging-x86_64/PKGBUILD
    (from rev 1101744, sundials/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: sundials/repos/community-staging-x86_64/PKGBUILD (from rev 1101744, 
sundials/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-01-12 20:46:40 UTC (rev 1101745)
@@ -0,0 +1,33 @@
+# Maintainer: Antonio Rojas <[email protected]>
+# Contributor: Elmar Klausmeier <[email protected]>
+
+pkgname=sundials
+pkgver=6.1.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=('286ac6b3567a8b5c8d372391f9061024dc3c6415556c3eb0423be8bdf2de1e77')
+
+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 \
+    -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
+}

Reply via email to