mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/sundials: fix
This commit is contained in:
parent
8b8bf9415c
commit
f8fed5cee9
1 changed files with 2 additions and 4 deletions
|
@ -1,8 +1,7 @@
|
|||
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
||||
# Contributor: Elmar Klausmeier <Elmar.Klausmeier@gmail.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - set SUNDIALS_INDEX_TYPE for 32-bit ARM
|
||||
# remove when bumped upstream
|
||||
|
||||
pkgname=sundials
|
||||
pkgver=5.5.0
|
||||
|
@ -17,7 +16,6 @@ source=("https://computation.llnl.gov/projects/sundials/download/$pkgname-$pkgve
|
|||
sha256sums=('2a755e89aab96d2ff096a4e30bf00bb162e80be20e9e99f424dccfb249098237')
|
||||
|
||||
build() {
|
||||
[[ $CARCH != "aarch64" ]] && CONFIG="-DSUNDIALS_INDEX_TYPE=int32_t"
|
||||
cmake -B build -S $pkgname-$pkgver \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_C_FLAGS="${CFLAGS} -fPIC -fcommon" \
|
||||
|
@ -27,7 +25,7 @@ build() {
|
|||
-DF77_INTERFACE_ENABLE=ON \
|
||||
-DKLU_ENABLE=ON \
|
||||
-DKLU_LIBRARY_DIR=/usr/lib \
|
||||
-DEXAMPLES_INSTALL_PATH=/usr/share/sundials/examples $CONFIG
|
||||
-DEXAMPLES_INSTALL_PATH=/usr/share/sundials/examples
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue