pkgname=netcdf pkgver=4.9.2 pkgrel=3 pkgdesc="Network Common Data Form interface for array-oriented data access and corresponding library." arch=("x86_64") url="https://www.unidata.ucar.edu/downloads/netcdf/" license=('custom') depends=('gcc-libs' 'hdf5' 'curl') options=('!libtool' '!makeflags') source=("https://downloads.unidata.ucar.edu/netcdf-c/${pkgver}/netcdf-c-${pkgver}.tar.gz" "https://github.com/DennisHeimbigner/netcdf-c/commit/727fa749005fa7868735fff82474b4476c6f5c6f.diff") md5sums=('f48ee01534365006934f0c63d4055ea0' '9c7009d193cbee3769a55049a91442c6') build() { cd ${pkgname}-c-${pkgver} #export CPPFLAGS+=" -DH5_USE_110_API" #patch -p1 -i ${srcdir}/727fa749005fa7868735fff82474b4476c6f5c6f.diff ./configure --prefix=/usr \ --enable-shared \ --enable-netcdf-4 make } check() { cd ${pkgname}-c-${pkgver} # 2 test fails in 4.9.1 make check } package() { cd ${pkgname}-c-${pkgver} make DESTDIR=${pkgdir} install install -Dm644 COPYRIGHT ${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT }