Date: Thursday, March 30, 2023 @ 17:43:02
Author: arojas
Revision: 1431304
archrelease: copy trunk to community-staging-x86_64
Added:
sundials/repos/community-staging-x86_64/
sundials/repos/community-staging-x86_64/PKGBUILD
(from rev 1431303, sundials/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: sundials/repos/community-staging-x86_64/PKGBUILD (from rev 1431303,
sundials/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-03-30 17:43:02 UTC (rev 1431304)
@@ -0,0 +1,33 @@
+# Maintainer: Antonio Rojas <[email protected]>
+# Contributor: Elmar Klausmeier <[email protected]>
+
+pkgname=sundials
+pkgver=6.5.1
+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=('30f3deb6a59d840eb9b91fa77e9a4a7c6026ba1bb63fd65e9d57c786d1c8725c')
+
+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
+}