summaryrefslogtreecommitdiff
path: root/extra/netcdf-cxx/PKGBUILD
blob: 49e59d2b28f6769844a103f7b158b5c656a09fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 198338 2013-10-30 14:15:40Z allan $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: damir <damir@archlinux.org>

pkgname=netcdf-cxx
pkgver=4.2
pkgrel=1
pkgdesc="NetCDF c++ bindings"
arch=("i686" "x86_64")
url="http://www.unidata.ucar.edu/downloads/netcdf/netcdf-cxx/index.jsp"
depends=('gcc-libs' 'netcdf' 'curl')
options=('!makeflags')
license=('custom')
source=(http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-cxx4-${pkgver}.tar.gz)
sha1sums=('59628c9f06c211a47517fc00d8b068da159ffa9d')

build() {
  cd ${srcdir}/${pkgname}4-${pkgver}
  ./configure --prefix=/usr --enable-shared
  make
#  make check
}

package() {
  cd ${srcdir}/${pkgname}4-${pkgver}

  install -m755 -d ${pkgdir}/usr/lib
  install -m755 -d ${pkgdir}/usr/share/man
  make DESTDIR=${pkgdir} install

  install -Dm644 ${srcdir}/${pkgname}4-${pkgver}/COPYRIGHT \
        ${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT

}