blob: 5e00bebd7617fdb4022b1c81d582dc977a36567d (
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
38
39
40
41
42
43
|
# Maintainer: Elmar Klausmeier <Elmar.Klausmeier@gmail.com>
pkgname=sundials
pkgver=4.0.1
pkgrel=1
pkgdesc="Suite of nonlinear differential/algebraic equation solvers"
arch=('i686' 'x86_64' 'armv7h')
url="https://computation.llnl.gov/casc/sundials/main.html"
license=('BSD')
depends=('gcc-libs' 'gcc-fortran' 'openmpi')
makedepends=('cmake')
source=("http://computation.llnl.gov/projects/sundials/download/$pkgname-$pkgver.tar.gz")
sha256sums=('29e409c8620e803990edbda1ebf49e03a38c08b9187b90658d86bddae913aed4')
build() {
rm -rf build
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DMPI_ENABLE=ON \
-DPTHREAD_ENABLE=ON \
-DOPENMP_ENABLE=ON \
-DFCMIX_ENABLE=ON \
-DEXAMPLES_ENABLE_C=ON \
-DEXAMPLES_ENABLE_CXX=ON \
-DEXAMPLES_ENABLE_F77=ON \
-DEXAMPLES_ENABLE_F90=ON \
-DEXAMPLES_INSTALL=ON \
-DEXAMPLES_INSTALL_PATH=/usr/share/"$pkgname-$pkgver"/examples \
../"$pkgname-$pkgver"
make
}
package() {
local doc="$pkgdir"/usr/share/doc/"$pkgname-$pkgver"
mkdir -p "$doc"
find . -name \*.pdf -exec cp -p {} "$doc" \;
chmod 644 "$doc"/*.pdf
make -C build DESTDIR="$pkgdir" install
if [ -d "$pkgdir"/usr/lib64 ]; then
mv "$pkgdir"/usr/lib64 "$pkgdir"/usr/lib
fi
}
|