blob: b44a244bc931ce807a4508d88142c7b22b1cb202 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
pkgname=sundials-seq
_pkgname=sundials
pkgver=7.1.1
pkgrel=1
pkgdesc='Suite of nonlinear differential/algebraic equation solvers (sequential version)'
arch=(x86_64)
url='https://computing.llnl.gov/projects/sundials'
license=(BSD)
depends=(suitesparse)
makedepends=(cmake
gcc-fortran
python)
source=(https://github.com/LLNL/sundials/archive/v$pkgver/$_pkgname-$pkgver.tar.gz)
sha256sums=('cb86c5723e5b06129050ac3721c3080a5cf60b97f3d4e1cda0cf03d1a3fed177')
provides=(sundials)
conflicts=(sundials)
build() {
cmake -B build -S $_pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_STATIC_LIBS=OFF \
-DENABLE_MPI=OFF \
-DENABLE_PTHREAD=ON \
-DENABLE_OPENMP=ON \
-DENABLE_KLU=ON \
-DKLU_LIBRARY_DIR=/usr/lib \
-DKLU_INCLUDE_DIR=/usr/include/suitesparse \
-DEXAMPLES_ENABLE_C=OFF \
-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
}
|