[arch-commits] Commit in sundials (3 files)
Antonio Rojas
arojas at archlinux.org
Mon Jan 14 20:26:09 UTC 2019
Date: Monday, January 14, 2019 @ 20:26:08
Author: arojas
Revision: 423087
archrelease: copy trunk to community-x86_64
Added:
sundials/repos/
sundials/repos/community-x86_64/
sundials/repos/community-x86_64/PKGBUILD
(from rev 423086, sundials/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: sundials/repos/community-x86_64/PKGBUILD (from rev 423086, sundials/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2019-01-14 20:26:08 UTC (rev 423087)
@@ -0,0 +1,38 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Elmar Klausmeier <Elmar.Klausmeier at gmail.com>
+
+pkgname=sundials
+pkgver=4.0.1
+pkgrel=2
+pkgdesc="Suite of nonlinear differential/algebraic equation solvers"
+arch=(x86_64)
+url="https://computation.llnl.gov/casc/sundials/main.html"
+license=(BSD)
+depends=(openmpi)
+makedepends=(cmake gcc-fortran python)
+source=("http://computation.llnl.gov/projects/sundials/download/$pkgname-$pkgver.tar.gz")
+sha256sums=('29e409c8620e803990edbda1ebf49e03a38c08b9187b90658d86bddae913aed4')
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DMPI_ENABLE=ON \
+ -DPTHREAD_ENABLE=ON \
+ -DOPENMP_ENABLE=ON \
+ -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