Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
netcdf


Commits:
d43e17ab by Antonio Rojas at 2025-12-10T23:23:37+01:00
upgpkg: 4.9.3-4: HDF5 2.0 rebuild

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,12 +1,13 @@
 pkgbase = netcdf
        pkgdesc = network Common Data Form interface for array-oriented data 
access and corresponding library
        pkgver = 4.9.3
-       pkgrel = 3
+       pkgrel = 4
        url = https://www.unidata.ucar.edu/software/netcdf/
        arch = x86_64
        license = custom
        checkdepends = unzip
        makedepends = cmake
+       makedepends = git
        depends = hdf5
        depends = curl
        depends = libxml2
@@ -18,7 +19,7 @@ pkgbase = netcdf
        optdepends = netcdf-fortran: fortran bindings
        optdepends = netcdf-cxx: c++ bindings
        options = !makeflags
-       source = 
https://github.com/Unidata/netcdf-c/archive/v4.9.3/netcdf-4.9.3.tar.gz
-       sha256sums = 
990f46d49525d6ab5dc4249f8684c6deeaf54de6fec63a187e9fb382cc0ffdff
+       source = git+https://github.com/Unidata/netcdf-c#tag=v4.9.3
+       sha256sums = 
01e621bb0a556860bb6e580142e4c05ba1ca7ef46f115ec41f592fd1736423ab
 
 pkgname = netcdf


=====================================
PKGBUILD
=====================================
@@ -4,26 +4,30 @@
 
 pkgname=netcdf
 pkgver=4.9.3
-pkgrel=3
+pkgrel=4
 pkgdesc="network Common Data Form interface for array-oriented data access and 
corresponding library"
 arch=(x86_64)
 url="https://www.unidata.ucar.edu/software/netcdf/";
 depends=(hdf5 curl libxml2 libaec blosc bzip2 libzip zstd)
-makedepends=(cmake)
+makedepends=(cmake git)
 checkdepends=(unzip)
 optdepends=('netcdf-fortran: fortran bindings' 'netcdf-cxx: c++ bindings')
 options=(!makeflags)
 license=(custom)
-source=(https://github.com/Unidata/netcdf-c/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('990f46d49525d6ab5dc4249f8684c6deeaf54de6fec63a187e9fb382cc0ffdff')
+source=(git+https://github.com/Unidata/netcdf-c#tag=v$pkgver)
+sha256sums=('01e621bb0a556860bb6e580142e4c05ba1ca7ef46f115ec41f592fd1736423ab')
 
 prepare() {
   # https://github.com/Unidata/netcdf-c/issues/2188 
https://github.com/Unidata/netcdf-c/issues/2242
-  sed -i "/tst_remote3/d" ${pkgname}-c-${pkgver}/ncdap_test/CMakeLists.txt
+  sed -i "/tst_remote3/d" ${pkgname}-c/ncdap_test/CMakeLists.txt
+
+  git -C $pkgname-c cherry-pick -n 1f1f359aeb4a31c47410d36581a141bb04d7b4a1 \
+                                   cf095c623963552a571b1c7fc46a2af69be071e2 \
+                                   741c4b4a909179d3fce56b60eede7ee5332af349 # 
Fix build with HDF5 2.0
 }
 
 build() {
-  cmake -B build -S ${pkgname}-c-${pkgver} \
+  cmake -B build -S ${pkgname}-c \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=Release \
     -DNETCDF_WITH_PLUGIN_DIR=/usr/lib/netcdf/plugin \
@@ -47,5 +51,5 @@ check() {
 
 package() {
   make -C build DESTDIR="${pkgdir}" install
-  install -Dm644 ${pkgname}-c-${pkgver}/COPYRIGHT -t 
"${pkgdir}"/usr/share/licenses/${pkgname}/
+  install -Dm644 ${pkgname}-c/COPYRIGHT -t 
"${pkgdir}"/usr/share/licenses/${pkgname}/
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/netcdf/-/commit/d43e17ab245033ee08cf1ec982b3554c0c9d2ce3

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/netcdf/-/commit/d43e17ab245033ee08cf1ec982b3554c0c9d2ce3
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to