mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
community/sundials to 5.3.0-1
This commit is contained in:
parent
cc4cb907a0
commit
bf37b72bfb
1 changed files with 7 additions and 13 deletions
|
@ -5,7 +5,7 @@
|
|||
# - set SUNDIALS_INDEX_TYPE for 32-bit ARM
|
||||
|
||||
pkgname=sundials
|
||||
pkgver=5.2.0
|
||||
pkgver=5.3.0
|
||||
pkgrel=1
|
||||
pkgdesc="Suite of nonlinear differential/algebraic equation solvers"
|
||||
arch=(x86_64)
|
||||
|
@ -14,18 +14,13 @@ license=(BSD)
|
|||
depends=(openmpi suitesparse)
|
||||
makedepends=(cmake gcc-fortran python)
|
||||
source=("https://computation.llnl.gov/projects/sundials/download/$pkgname-$pkgver.tar.gz")
|
||||
sha256sums=('95f058acce5bd66e654de65acdbb1c9f44c90cf1b4e28f8d933cdb4415ebba3e')
|
||||
|
||||
prepare() {
|
||||
mkdir -p build
|
||||
}
|
||||
sha256sums=('88dff7e11a366853d8afd5de05bf197a8129a804d9d4461fb64297f1ef89bca7')
|
||||
|
||||
build() {
|
||||
cd build
|
||||
[[ $CARCH != "aarch64" ]] && CONFIG="-DSUNDIALS_INDEX_TYPE=int32_t"
|
||||
cmake ../$pkgname-$pkgver \
|
||||
cmake -B build -S $pkgname-$pkgver \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_C_FLAGS="${CFLAGS} -fPIC" \
|
||||
-DCMAKE_C_FLAGS="${CFLAGS} -fPIC -fcommon" \
|
||||
-DMPI_ENABLE=ON \
|
||||
-DPTHREAD_ENABLE=ON \
|
||||
-DOPENMP_ENABLE=ON \
|
||||
|
@ -33,12 +28,11 @@ build() {
|
|||
-DKLU_ENABLE=ON \
|
||||
-DKLU_LIBRARY_DIR=/usr/lib \
|
||||
-DEXAMPLES_INSTALL_PATH=/usr/share/sundials/examples $CONFIG
|
||||
make
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd build
|
||||
make DESTDIR="$pkgdir" install
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
|
||||
install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
install -Dm644 $pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue