[arch-commits] Commit in sundials/repos (2 files)
Antonio Rojas
arojas at archlinux.org
Thu Dec 17 07:06:28 UTC 2020
Date: Thursday, December 17, 2020 @ 07:06:26
Author: arojas
Revision: 777091
archrelease: copy trunk to community-staging-x86_64
Added:
sundials/repos/community-staging-x86_64/
sundials/repos/community-staging-x86_64/PKGBUILD
(from rev 777090, sundials/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: sundials/repos/community-staging-x86_64/PKGBUILD (from rev 777090, sundials/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-12-17 07:06:26 UTC (rev 777091)
@@ -0,0 +1,34 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Elmar Klausmeier <Elmar.Klausmeier at gmail.com>
+
+pkgname=sundials
+pkgver=5.6.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://computation.llnl.gov/projects/sundials/download/$pkgname-$pkgver.tar.gz")
+sha256sums=('16b77999ec7e7f2157aa1d04ca1de4a2371ca8150e056d24951d0c58966f2a83')
+
+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
+}
More information about the arch-commits
mailing list