Date: Friday, October 1, 2021 @ 21:14:46 Author: archange Revision: 1026600
archrelease: copy trunk to community-staging-x86_64 Added: pnetcdf-openmpi/repos/community-staging-x86_64/ pnetcdf-openmpi/repos/community-staging-x86_64/PKGBUILD (from rev 1026599, pnetcdf-openmpi/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: pnetcdf-openmpi/repos/community-staging-x86_64/PKGBUILD (from rev 1026599, pnetcdf-openmpi/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-10-01 21:14:46 UTC (rev 1026600) @@ -0,0 +1,44 @@ +# Maintainer: Bruno Pagani <archa...@archlinux.org> + +_pkg=pnetcdf +_mpi=openmpi +pkgname=${_pkg}-${_mpi} +pkgver=1.12.2 +pkgrel=2 +pkgdesc="Parallel I/O Library for NetCDF File Access (${_mpi} version)" +arch=(x86_64) +url="https://parallel-netcdf.github.io/" +license=(custom) +depends=("${_mpi}") # "netcdf-${_mpi}") +makedepends=(gcc-fortran) +checkdepends=(inetutils) +provides=(parallel-netcdf parallel-netcdf-openmpi) +conflicts=(parallel-netcdf parallel-netcdf-openmpi) +replaces=(parallel-netcdf parallel-netcdf-openmpi) +options=(staticlibs) +source=("${url}/Release/${_pkg}-${pkgver}.tar.gz") +sha1sums=('3ab82ea878e321f6c0fd9afb44c8707949485d09') + +prepare() { + cd ${_pkg}-${pkgver} + autoreconf -vfi +} + +build() { + cd ${_pkg}-${pkgver} + ./configure --prefix=/usr --enable-shared #--enable-netcdf4 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make LIBTOOLFLAGS=--verbose +} + +check() { + cd ${_pkg}-${pkgver} + make check + make ptest +} + +package() { + cd ${_pkg}-${pkgver} + make DESTDIR="${pkgdir}" install + install -Dm644 COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${_pkg} +}