1 # Maintainer: Graziano Giuliani <graziano.giuliani@gmail.com>
5 pkgdesc="ncregrid is a tool (written in FORTRAN-90) for data transfer of gridded 2- and 3-dimensional (spatial) geophysical/geochemical scalar fields between grids of different resolutions."
7 url="http://www.pa.op.dlr.de/~PatrickJoeckel/ncregrid/index.html"
10 makedepends=(gcc-fortran)
11 source=(http://www.pa.op.dlr.de/~PatrickJoeckel/ncregrid/ncregrid.tar.Z)
12 md5sums=('175569cc11c5646f36893d3dfccea83a')
16 F90=gfortran F90FLAGS="$FCFLAGS" \
17 NC_INC=/usr/include NC_LIB=/usr/lib ./configure --prefix=/usr
20 cp -a $file src/`basename $file .f90`.F90
22 sed -e 's/\.f90/\.F90/g' -i src/Makefile
23 sed -e 's/-lnetcdf/-lnetcdff -lnetcdf/' -i Makefile
29 mkdir -p $pkgdir/usr/bin $pkgdir/usr/share/ncregrid/examples
30 install -m 755 src/ncregrid $pkgdir/usr/bin
31 install -m 644 doc/ncregrid.pdf $pkgdir/usr/share/ncregrid
32 cp -a examples/* $pkgdir/usr/share/ncregrid/examples
35 # vim:set ts=2 sw=2 et: