[arch-commits] Commit in sundials/repos (2 files)
Antonio Rojas
arojas at archlinux.org
Tue Oct 22 17:05:27 UTC 2019
Date: Tuesday, October 22, 2019 @ 17:05:26
Author: arojas
Revision: 518383
archrelease: copy trunk to community-staging-x86_64
Added:
sundials/repos/community-staging-x86_64/
sundials/repos/community-staging-x86_64/PKGBUILD
(from rev 518382, sundials/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: sundials/repos/community-staging-x86_64/PKGBUILD (from rev 518382, sundials/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-22 17:05:26 UTC (rev 518383)
@@ -0,0 +1,39 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Elmar Klausmeier <Elmar.Klausmeier at gmail.com>
+
+pkgname=sundials
+pkgver=5.0.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=('345141ec01c641d0bdfb3476c478b7e74fd6a7192a478a27cafe75d9da2d7dd3')
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMPI_ENABLE=ON \
+ -DPTHREAD_ENABLE=ON \
+ -DOPENMP_ENABLE=ON \
+ -DF77_INTERFACE_ENABLE=ON \
+ -DKLU_ENABLE=ON \
+ -DKLU_LIBRARY_DIR=/usr/lib \
+ -DEXAMPLES_INSTALL_PATH=/usr/share/sundials/examples
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list