# $Id: PKGBUILD 207581 2014-03-12 13:10:24Z bpiotrowski $ # Maintainer: Ronald van Haren # Contributor: damir pkgname=netcdf pkgver=4.3.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') optdepends=('netcdf-fortran: fortran bindings' 'netcdf-cxx: c++ bindings') options=('!makeflags') license=('custom') source=(http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-${pkgver}.tar.gz) sha1sums=('6aed20fa906e4963017ce9d1591aab39d8a556e4') build() { cd ${srcdir}/${pkgname}-${pkgver} ./configure --prefix=/usr --enable-shared --enable-netcdf-4 --enable-dap-netcdf make # make check } package() { cd ${srcdir}/${pkgname}-${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 }