1 # Maintainer: Bruno Pagani <archange@archlinux.org>
5 pkgname=${_pkg}-${_mpi}
8 pkgdesc="Parallel I/O Library for NetCDF File Access (${_mpi} version)"
10 url="https://parallel-netcdf.github.io/"
12 depends=("${_mpi}" "netcdf-${_mpi}")
13 makedepends=(gcc-fortran)
14 checkdepends=(inetutils)
15 provides=(parallel-netcdf parallel-netcdf-openmpi)
16 conflicts=(parallel-netcdf parallel-netcdf-openmpi)
17 replaces=(parallel-netcdf parallel-netcdf-openmpi)
19 source=("${url}/Release/${_pkg}-${pkgver}.tar.gz")
20 sha256sums=('439e359d09bb93d0e58a6e3f928f39c2eae965b6c97f64e67cd42220d6034f77')
29 export CFLAGS+=" -ffat-lto-objects"
30 ./configure --prefix=/usr --enable-shared --enable-netcdf4
31 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
32 make LIBTOOLFLAGS=--verbose
37 export OMPI_MCA_opal_warn_on_missing_libcuda=0
44 make DESTDIR="${pkgdir}" install
45 install -Dm644 COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${_pkg}