cvode: update to 6.0.0

Build with ninja for speed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-12-21 23:24:45 -08:00
parent 2052bc6202
commit 120efe8a0e
2 changed files with 32 additions and 1014 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -3,18 +3,19 @@
_realname=cvode
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=5.1.0
pkgver=6.0.0
pkgrel=1
pkgdesc="ordinary differential equation system solver (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
url="https://computation.llnl.gov/projects/sundials"
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url="https://computing.llnl.gov/projects/sundials/cvode"
license=('BSD')
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake")
source=("${_realname}-${pkgver}.tar.gz"::https://computation.llnl.gov/projects/sundials/download/${_realname}-${pkgver}.tar.gz
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-ninja")
source=("https://github.com/LLNL/sundials/releases/download/v${pkgver}/${_realname}-${pkgver}.tar.gz"
001-install-location.patch)
sha256sums=('9b16e70a6de3ffe279ba3c05282f685817ee3f0cac44d2800410e01cbf4110d0'
'77fe2d4a96ef9b32863694139c876dbfc62742807530b26d0876eb5a86ed0edb')
sha256sums=('c968eb5ee891618a423fe49dc82349bfd1fee5c904cd968fff3aaf33f433c48f'
'd2860ecbc67e43abf5cc34ef39b5f6fdb64ee8495be4067bb7a99adcdec09912')
prepare() {
cd ${_realname}-${pkgver}
@@ -28,17 +29,17 @@ build() {
MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
${MINGW_PREFIX}/bin/cmake.exe \
-G"MSYS Makefiles" \
-G"Ninja" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
../${_realname}-${pkgver}
make
cmake --build .
}
package() {
cd build-${MINGW_CHOST}
make DESTDIR=${pkgdir} install
DESTDIR=${pkgdir} cmake --install .
# license
rm ${pkgdir}${MINGW_PREFIX}/include/sundials/LICENSE