[arch-commits] Commit in netcdf/trunk (PKGBUILD)
Ronald van Haren
ronald at archlinux.org
Thu Oct 20 19:11:42 UTC 2016
Date: Thursday, October 20, 2016 @ 19:11:41
Author: ronald
Revision: 279061
upgpkg: netcdf 4.4.1-1
update to 4.4.1
Modified:
netcdf/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-20 18:24:04 UTC (rev 279060)
+++ PKGBUILD 2016-10-20 19:11:41 UTC (rev 279061)
@@ -3,7 +3,7 @@
# Contributor: damir <damir at archlinux.org>
pkgname=netcdf
-pkgver=4.4.1rc1
+pkgver=4.4.1
pkgrel=1
pkgdesc="network Common Data Form interface for array-oriented data access and corresponding library"
arch=("i686" "x86_64")
@@ -13,27 +13,29 @@
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/v4.4.1-rc1.tar.gz")
-sha1sums=('7606c16814bf9b33a66815e4109d9ba2df4a4936')
+source=("https://github.com/Unidata/netcdf-c/archive/v${pkgver}.tar.gz")
+sha1sums=('1cae39472930a25d6ab1bdf6af2a0d85d09aedf9')
build() {
-# cd "${srcdir}"/${pkgname}-${pkgver}
- cd "${srcdir}"/netcdf-c-4.4.1-rc1
+ # cd "${srcdir}"/${pkgname}-${pkgver}
+ cd "${srcdir}/netcdf-c-${pkgver}"
# autoreconf -fis
./configure --prefix=/usr --enable-shared --enable-netcdf-4 --enable-dap-netcdf
make
}
-# hdf5 tests fail, have not yet been updated to hdf5-1.10.0
-#check() {
-# cd "${srcdir}"/${pkgname}-${pkgver}
-# cd "${srcdir}"/netcdf-c-4.4.1-rc1
-# make check
-#}
+# 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-4.4.1-rc1
+ cd "${srcdir}/netcdf-c-${pkgver}"
install -m755 -d "${pkgdir}"/usr/lib
install -m755 -d "${pkgdir}"/usr/share/man
make DESTDIR="${pkgdir}" install
@@ -40,7 +42,7 @@
# install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/COPYRIGHT \
# "${pkgdir}"/usr/share/licenses/${pkgname}/COPYRIGHT
- install -Dm644 "${srcdir}"/netcdf-c-4.4.1-rc1/COPYRIGHT \
+ install -Dm644 "${srcdir}"/netcdf-c-${pkgver}/COPYRIGHT \
"${pkgdir}"/usr/share/licenses/${pkgname}/COPYRIGHT
}
More information about the arch-commits
mailing list