* update netcdf to 4.9.2-6

This commit is contained in:
Alexander Baldeck 2024-11-08 17:07:48 +01:00
parent c1928f5742
commit 60331bb9da
2 changed files with 22 additions and 10 deletions

View File

@ -1,9 +1,13 @@
pkgbase = netcdf pkgbase = netcdf
pkgdesc = network Common Data Form interface for array-oriented data access and corresponding library pkgdesc = network Common Data Form interface for array-oriented data access and corresponding library
pkgver = 4.9.2 pkgver = 4.9.2
pkgrel = 4 pkgrel = 6
url = https://www.unidata.ucar.edu/software/netcdf/ url = https://www.unidata.ucar.edu/software/netcdf/
arch = x86_64 arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = custom license = custom
checkdepends = unzip checkdepends = unzip
makedepends = cmake makedepends = cmake

View File

@ -5,23 +5,22 @@
pkgname=netcdf pkgname=netcdf
pkgver=4.9.2 pkgver=4.9.2
pkgrel=4.2 pkgrel=6
pkgdesc="network Common Data Form interface for array-oriented data access and corresponding library" pkgdesc="network Common Data Form interface for array-oriented data access and corresponding library"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64) arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://www.unidata.ucar.edu/software/netcdf/" url="https://www.unidata.ucar.edu/software/netcdf/"
depends=(hdf5 curl libxml2 libaec blosc bzip2 libzip zstd) depends=(hdf5 curl libxml2 libaec blosc bzip2 libzip zstd)
makedepends=(cmake git) makedepends=(cmake)
checkdepends=(unzip) checkdepends=(unzip)
optdepends=('netcdf-fortran: fortran bindings' 'netcdf-cxx: c++ bindings') optdepends=('netcdf-fortran: fortran bindings' 'netcdf-cxx: c++ bindings')
options=(!makeflags) options=(!makeflags)
license=(custom) license=(custom)
_commit=d18a6061c2f22cdc21e712a312da3807bec6c54d source=(https://github.com/Unidata/netcdf-c/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
source=("git+https://github.com/Unidata/netcdf-c.git#commit=${_commit}") sha256sums=('bc104d101278c68b303359b3dc4192f81592ae8640f1aee486921138f7f88cb7')
sha256sums=('f0081a888658814019c3d0550e0aaa25d99a3465472f72cdc850d6ad1726659c')
prepare() { prepare() {
# https://github.com/Unidata/netcdf-c/issues/2188 https://github.com/Unidata/netcdf-c/issues/2242 # https://github.com/Unidata/netcdf-c/issues/2188 https://github.com/Unidata/netcdf-c/issues/2242
sed -i "/tst_remote3/d" ${pkgname}-c/ncdap_test/CMakeLists.txt sed -i "/tst_remote3/d" ${pkgname}-c-${pkgver}/ncdap_test/CMakeLists.txt
} }
build() { build() {
@ -32,6 +31,7 @@ build() {
) )
;; ;;
powerpc) powerpc)
export CFLAGS+=' -Wno-incompatible-pointer-types'
cmake_options=( cmake_options=(
-DENABLE_CDF5=OFF -DENABLE_CDF5=OFF
-DNETCDF_GENERATE_NCGEN=ON -DNETCDF_GENERATE_NCGEN=ON
@ -39,11 +39,19 @@ build() {
;; ;;
esac esac
cmake -B build -S ${pkgname}-c \ cmake -B build -S ${pkgname}-c-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DENABLE_BYTERANGE=ON ${cmake_options[@]} -DPLUGIN_INSTALL_DIR=/usr/lib/netcdf/plugin \
-DENABLE_BYTERANGE=ON \
-DENABLE_DAP_LONG_TESTS=ON \
-DENABLE_DAP_REMOTE_TESTS=ON \
-DENABLE_EXAMPLE_TESTS=ON \
-DENABLE_EXTRA_TESTS=ON \
-DENABLE_FILTER_TESTING=ON \
-DENABLE_LARGE_FILE_TESTS=ON \
-DENABLE_UNIT_TESTS=ON ${cmake_options[@]}
make -C build make -C build
} }
@ -56,5 +64,5 @@ check() {
package() { package() {
make -C build DESTDIR="${pkgdir}" install make -C build DESTDIR="${pkgdir}" install
install -Dm644 ${pkgname}-c/COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${pkgname}/ install -Dm644 ${pkgname}-c-${pkgver}/COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${pkgname}/
} }