[arch-commits] Commit in sundials/repos (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Fri Oct 1 18:23:32 UTC 2021


    Date: Friday, October 1, 2021 @ 18:23:32
  Author: arojas
Revision: 1026519

archrelease: copy trunk to community-staging-x86_64

Added:
  sundials/repos/community-staging-x86_64/
  sundials/repos/community-staging-x86_64/PKGBUILD
    (from rev 1026518, sundials/trunk/PKGBUILD)
  sundials/repos/community-staging-x86_64/sundials-fix-cmake-targets.patch
    (from rev 1026518, sundials/trunk/sundials-fix-cmake-targets.patch)

----------------------------------+
 PKGBUILD                         |   40 +++++++++++++++++++++++++++++++++++++
 sundials-fix-cmake-targets.patch |   13 ++++++++++++
 2 files changed, 53 insertions(+)

Copied: sundials/repos/community-staging-x86_64/PKGBUILD (from rev 1026518, sundials/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-10-01 18:23:32 UTC (rev 1026519)
@@ -0,0 +1,40 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Elmar Klausmeier <Elmar.Klausmeier at gmail.com>
+
+pkgname=sundials
+pkgver=5.8.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/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
+        sundials-fix-cmake-targets.patch)
+sha256sums=('d4ed403351f72434d347df592da6c91a69452071860525385b3339c824e8a213'
+            '949206b3237fb918700c87664da5618de49fe019f342583e560e4ce63ebe3a61')
+
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < sundials-fix-cmake-targets.patch # FS#70399
+}
+
+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
+}

Copied: sundials/repos/community-staging-x86_64/sundials-fix-cmake-targets.patch (from rev 1026518, sundials/trunk/sundials-fix-cmake-targets.patch)
===================================================================
--- community-staging-x86_64/sundials-fix-cmake-targets.patch	                        (rev 0)
+++ community-staging-x86_64/sundials-fix-cmake-targets.patch	2021-10-01 18:23:32 UTC (rev 1026519)
@@ -0,0 +1,13 @@
+diff --git a/cmake/macros/SundialsAddLibrary.cmake b/cmake/macros/SundialsAddLibrary.cmake
+index 1d78918..5acd856 100644
+--- a/cmake/macros/SundialsAddLibrary.cmake
++++ b/cmake/macros/SundialsAddLibrary.cmake
+@@ -122,7 +122,7 @@ macro(sundials_add_library target)
+ 
+   # library types to create
+   set(_libtypes "")
+-  if(BUILD_STATIC_LIBS AND (NOT sundials_add_library_SHARED_ONLY))
++  if(BUILD_STATIC_LIBS AND sundials_add_library_STATIC_ONLY)
+     set(_libtypes "STATIC")
+   endif()
+ 



More information about the arch-commits mailing list