[arch-commits] Commit in netcdf/trunk (PKGBUILD)
Bruno Pagani
archange at archlinux.org
Sat Jun 17 17:10:46 UTC 2017
Date: Saturday, June 17, 2017 @ 17:10:45
Author: archange
Revision: 237977
upgpkg: netcdf 4.4.1.1-1
Update + clean + HDF5 rebuild.
Modified:
netcdf/trunk/PKGBUILD
----------+
PKGBUILD | 57 +++++++++++++++++++++++++--------------------------------
1 file changed, 25 insertions(+), 32 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-17 16:59:00 UTC (rev 237976)
+++ PKGBUILD 2017-06-17 17:10:45 UTC (rev 237977)
@@ -1,49 +1,42 @@
# $Id$
# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
# Contributor: damir <damir at archlinux.org>
pkgname=netcdf
-pkgver=4.4.1
-pkgrel=2
+pkgver=4.4.1.1
+pkgrel=1
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')
+arch=('i686' 'x86_64')
+url="https://www.unidata.ucar.edu/software/netcdf/"
+depends=('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')
+source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/Unidata/netcdf-c/archive/v${pkgver}.tar.gz")
+sha256sums=('7f040a0542ed3f6d27f3002b074e509614e18d6c515b2005d1537fec01b24909')
build() {
- # cd "${srcdir}"/${pkgname}-${pkgver}
- cd "${srcdir}/netcdf-c-${pkgver}"
-# autoreconf -fis
- ./configure --prefix=/usr --enable-shared --enable-netcdf-4 --enable-dap-netcdf
- make
+ cd ${pkgname}-c-${pkgver}
+ #export CFLAGS="-march=x86-64 -mtune=generic -O0 -pipe -fstack-protector-strong"
+ ./configure \
+ --prefix=/usr \
+ --enable-shared
+ 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
-# }
+check() {
+ cd ${pkgname}-c-${pkgver}
+ # 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
+ make check || warning "Tests failed"
+}
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
+ cd ${pkgname}-c-${pkgver}
+ 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
+ install -Dm644 COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
-}
More information about the arch-commits
mailing list