Date: Thursday, May 21, 2020 @ 20:50:09 Author: arojas Revision: 631491
Update to 5.3.0 Modified: sundials/trunk/PKGBUILD ----------+ PKGBUILD | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-05-21 20:47:28 UTC (rev 631490) +++ PKGBUILD 2020-05-21 20:50:09 UTC (rev 631491) @@ -2,7 +2,7 @@ # Contributor: Elmar Klausmeier <elmar.klausme...@gmail.com> pkgname=sundials -pkgver=5.2.0 +pkgver=5.3.0 pkgrel=1 pkgdesc="Suite of nonlinear differential/algebraic equation solvers" arch=(x86_64) @@ -11,17 +11,12 @@ depends=(openmpi suitesparse) makedepends=(cmake gcc-fortran python) source=("https://computation.llnl.gov/projects/sundials/download/$pkgname-$pkgver.tar.gz") -sha256sums=('95f058acce5bd66e654de65acdbb1c9f44c90cf1b4e28f8d933cdb4415ebba3e') +sha256sums=('88dff7e11a366853d8afd5de05bf197a8129a804d9d4461fb64297f1ef89bca7') -prepare() { - mkdir -p build -} - build() { - cd build - 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 \ @@ -29,12 +24,11 @@ -DKLU_ENABLE=ON \ -DKLU_LIBRARY_DIR=/usr/lib \ -DEXAMPLES_INSTALL_PATH=/usr/share/sundials/examples - 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 }