summaryrefslogtreecommitdiff
path: root/extra/netcdf-fortran/PKGBUILD
blob: 415844e0aa58c15c424bc6cec84feedc177ffcc4 (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
35
# $Id: PKGBUILD 164376 2012-07-31 20:07:54Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: damir <damir@archlinux.org>

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

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr --enable-shared
  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

}