[arch-commits] Commit in netcdf-openmpi/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Sat Apr 11 20:29:12 UTC 2020


    Date: Saturday, April 11, 2020 @ 20:29:12
  Author: archange
Revision: 613360

upgpkg: netcdf-openmpi 4.7.4-1

Modified:
  netcdf-openmpi/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++-----------------
 1 file changed, 7 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-11 19:55:23 UTC (rev 613359)
+++ PKGBUILD	2020-04-11 20:29:12 UTC (rev 613360)
@@ -5,7 +5,7 @@
 _pkg=netcdf
 _mpi=openmpi
 pkgname=${_pkg}-${_mpi}
-pkgver=4.7.3
+pkgver=4.7.4
 pkgrel=1
 pkgdesc="network Common Data Form interface for array-oriented data access and corresponding library with parallel support (${_mpi} version)"
 arch=(x86_64)
@@ -19,16 +19,11 @@
 conflicts=("${_pkg}")
 options=(!makeflags)
 source=(https://github.com/Unidata/netcdf-c/archive/v${pkgver}/${_pkg}-${pkgver}.tar.gz)
-sha256sums=('05d064a2d55147b83feff3747bea13deb77bef390cb562df4f9f9f1ce147840d')
+sha256sums=('99930ad7b3c4c1a8e8831fb061cb02b2170fc8e5ccaeda733bd99c3b9d31666b')
 
-prepare() {
-    mkdir -p build
-}
-
 build() {
-    cd build
     export CC=mpicc
-    cmake ../${_pkg}-c-${pkgver} \
+    cmake -B build -S ${_pkg}-c-${pkgver} \
         -DCMAKE_INSTALL_PREFIX=/usr \
         -DCMAKE_INSTALL_LIBDIR=lib \
         -DCMAKE_BUILD_TYPE=Release \
@@ -40,24 +35,19 @@
         -DENABLE_FAILING_TESTS=ON \
         -DENABLE_FILTER_TESTING=ON \
         -DENABLE_LARGE_FILE_TESTS=ON
-    make
+    make -C build
 }
 
 
 check() {
-    cd build
-
     # This is required starting with OpenMPI 3.0 when trying to run more
     # processes than the number of available cores
     export OMPI_MCA_rmaps_base_oversubscribe=yes
 
-    make test
+    make -C build test
 }
 
 package() {
-    cd build
-    make DESTDIR="${pkgdir}" install
-
-    cd "${srcdir}"/${_pkg}-c-${pkgver}
-    install -Dm644 COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${_pkg}/
+    make -C build DESTDIR="${pkgdir}" install
+    install -Dm644 ${_pkg}-c-${pkgver}/COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${_pkg}/
 }


More information about the arch-commits mailing list