[arch-commits] Commit in netcdf-fortran/repos/community-x86_64 (PKGBUILD PKGBUILD)
Bruno Pagani
archange at archlinux.org
Mon Jul 27 21:33:21 UTC 2020
Date: Monday, July 27, 2020 @ 21:33:20
Author: archange
Revision: 665539
archrelease: copy trunk to community-x86_64
Added:
netcdf-fortran/repos/community-x86_64/PKGBUILD
(from rev 665538, netcdf-fortran/trunk/PKGBUILD)
Deleted:
netcdf-fortran/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 79 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 40 insertions(+), 39 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-27 21:33:14 UTC (rev 665538)
+++ PKGBUILD 2020-07-27 21:33:20 UTC (rev 665539)
@@ -1,39 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-# Maintainer: Ronald van Haren <ronald.archlinux.org>
-# Contributor: damir <damir at archlinux.org>
-
-pkgname=netcdf-fortran
-pkgver=4.5.2
-pkgrel=2
-pkgdesc="NetCDF fortran bindings"
-arch=(x86_64)
-url="https://github.com/Unidata/netcdf-fortran"
-license=(custom)
-depends=(gcc-libs netcdf curl)
-makedepends=(gcc-fortran doxygen)
-checkdepends=(valgrind)
-options=(!makeflags staticlibs)
-source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('0b05c629c70d6d224a3be28699c066bfdfeae477aea211fbf034d973a8309b49')
-
-build() {
- cd ${pkgname}-${pkgver}
- ./configure \
- --prefix=/usr \
- --enable-extra-tests \
- --enable-extra-example-tests \
- --enable-large-file-tests \
- --enable-valgrind-tests
- make
-}
-
-check() {
- cd ${pkgname}-${pkgver}
- make check
-}
-
-package() {
- cd ${pkgname}-${pkgver}
- make DESTDIR="${pkgdir}" install
- install -Dm644 COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${pkgname}/
-}
Copied: netcdf-fortran/repos/community-x86_64/PKGBUILD (from rev 665538, netcdf-fortran/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-07-27 21:33:20 UTC (rev 665539)
@@ -0,0 +1,40 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+
+pkgname=netcdf-fortran
+pkgver=4.5.3
+pkgrel=1
+pkgdesc="NetCDF fortran bindings"
+arch=(x86_64)
+url="https://github.com/Unidata/netcdf-fortran"
+license=(custom)
+depends=(gcc-libs netcdf curl)
+makedepends=(cmake gcc-fortran doxygen)
+checkdepends=(valgrind)
+options=(!makeflags staticlibs)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('c6da30c2fe7e4e614c1dff4124e857afbd45355c6798353eccfa60c0702b495a')
+
+build() {
+ # Failure with GCC 10+
+ export FCFLAGS="-fallow-argument-mismatch"
+ export FFLAGS="-fallow-argument-mismatch"
+ cmake -B build -S ${pkgname}-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DENABLE_FILTER_TEST=ON \
+ -DLARGE_FILE_TESTS=ON \
+ -DTEST_WITH_VALGRIND=ON
+ make -C build
+}
+
+check() {
+ make -C build test
+}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+ install -Dm644 ${pkgname}-${pkgver}/COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+ rmdir "${pkgdir}"/usr/include/CMakeFiles/{netcdff.dir,}
+}
More information about the arch-commits
mailing list