[arch-commits] Commit in netcdf/repos (4 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Wed May 31 13:05:02 UTC 2017


    Date: Wednesday, May 31, 2017 @ 13:05:01
  Author: bpiotrowski
Revision: 231555

archrelease: copy trunk to community-i686, community-x86_64

Added:
  netcdf/repos/community-i686/
  netcdf/repos/community-i686/PKGBUILD
    (from rev 231554, netcdf/trunk/PKGBUILD)
  netcdf/repos/community-x86_64/
  netcdf/repos/community-x86_64/PKGBUILD
    (from rev 231554, netcdf/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   49 ++++++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   49 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)

Copied: netcdf/repos/community-i686/PKGBUILD (from rev 231554, netcdf/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2017-05-31 13:05:01 UTC (rev 231555)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+
+pkgname=netcdf
+pkgver=4.4.1
+pkgrel=2
+pkgdesc="network Common Data Form interface for array-oriented data access and corresponding library"
+arch=("i686" "x86_64")
+url="http://www.unidata.ucar.edu/downloads/netcdf/index.jsp"
+depends=('gcc-libs' 'hdf5' 'curl')
+optdepends=('netcdf-fortran: fortran bindings' 'netcdf-cxx: c++ bindings')
+provides=('libnetcdf.so')
+options=('!makeflags')
+license=('custom')
+#source=("http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-${pkgver}.tar.gz")
+source=("https://github.com/Unidata/netcdf-c/archive/v${pkgver}.tar.gz")
+sha1sums=('1cae39472930a25d6ab1bdf6af2a0d85d09aedf9')
+
+build() {
+  # cd "${srcdir}"/${pkgname}-${pkgver}
+  cd "${srcdir}/netcdf-c-${pkgver}"
+#  autoreconf -fis
+  ./configure --prefix=/usr --enable-shared --enable-netcdf-4 --enable-dap-netcdf
+  make
+}
+
+# As of netcdf-c-4.4.1, all the tests pass except for one; a workaround is to
+# update CFLAGS so no optimization level is used (i.e., remove "-O2"). See
+# https://github.com/Unidata/netcdf-c/issues/244
+# check() {
+#   # cd "${srcdir}"/${pkgname}-${pkgver}
+#   cd "${srcdir}/netcdf-c-${pkgver}"
+#   make check
+# }
+
+package() {
+#  cd "${srcdir}"/${pkgname}-${pkgver}
+  cd "${srcdir}/netcdf-c-${pkgver}"
+  install -m755 -d "${pkgdir}"/usr/lib
+  install -m755 -d "${pkgdir}"/usr/share/man
+  make DESTDIR="${pkgdir}" install
+
+#  install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/COPYRIGHT \
+#    "${pkgdir}"/usr/share/licenses/${pkgname}/COPYRIGHT
+  install -Dm644 "${srcdir}"/netcdf-c-${pkgver}/COPYRIGHT \
+        "${pkgdir}"/usr/share/licenses/${pkgname}/COPYRIGHT
+
+}

Copied: netcdf/repos/community-x86_64/PKGBUILD (from rev 231554, netcdf/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-05-31 13:05:01 UTC (rev 231555)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+
+pkgname=netcdf
+pkgver=4.4.1
+pkgrel=2
+pkgdesc="network Common Data Form interface for array-oriented data access and corresponding library"
+arch=("i686" "x86_64")
+url="http://www.unidata.ucar.edu/downloads/netcdf/index.jsp"
+depends=('gcc-libs' 'hdf5' 'curl')
+optdepends=('netcdf-fortran: fortran bindings' 'netcdf-cxx: c++ bindings')
+provides=('libnetcdf.so')
+options=('!makeflags')
+license=('custom')
+#source=("http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-${pkgver}.tar.gz")
+source=("https://github.com/Unidata/netcdf-c/archive/v${pkgver}.tar.gz")
+sha1sums=('1cae39472930a25d6ab1bdf6af2a0d85d09aedf9')
+
+build() {
+  # cd "${srcdir}"/${pkgname}-${pkgver}
+  cd "${srcdir}/netcdf-c-${pkgver}"
+#  autoreconf -fis
+  ./configure --prefix=/usr --enable-shared --enable-netcdf-4 --enable-dap-netcdf
+  make
+}
+
+# As of netcdf-c-4.4.1, all the tests pass except for one; a workaround is to
+# update CFLAGS so no optimization level is used (i.e., remove "-O2"). See
+# https://github.com/Unidata/netcdf-c/issues/244
+# check() {
+#   # cd "${srcdir}"/${pkgname}-${pkgver}
+#   cd "${srcdir}/netcdf-c-${pkgver}"
+#   make check
+# }
+
+package() {
+#  cd "${srcdir}"/${pkgname}-${pkgver}
+  cd "${srcdir}/netcdf-c-${pkgver}"
+  install -m755 -d "${pkgdir}"/usr/lib
+  install -m755 -d "${pkgdir}"/usr/share/man
+  make DESTDIR="${pkgdir}" install
+
+#  install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/COPYRIGHT \
+#    "${pkgdir}"/usr/share/licenses/${pkgname}/COPYRIGHT
+  install -Dm644 "${srcdir}"/netcdf-c-${pkgver}/COPYRIGHT \
+        "${pkgdir}"/usr/share/licenses/${pkgname}/COPYRIGHT
+
+}



More information about the arch-commits mailing list