1 # Maintainer: (epsilom) Xavier Corredor <xavier.corredor.llano (a) gmail.com>
6 pkgdesc="PyNIO is a Python programming language module that allows read and/or write access to a variety of data formats using an interface modelled on netCDF."
7 url="http://www.pyngl.ucar.edu/Nio.shtml"
8 license=('custom:PyNIO Source Code License')
10 depends=('netcdf' 'hdf5' 'hdf-eos2' 'hdf-eos5' 'hdf4-nonetcdf' 'python2' 'g2clib' 'gdal')
11 makedepends=('glibc' 'gcc' 'gcc-fortran' 'libjpeg' 'jasper' 'zlib' 'unzip')
13 source=("http://dl.dropbox.com/u/3383807/PyNIO-${pkgver}.tar.gz")
14 md5sums=('e40546e4d1095408d125427b4ecfee43')
18 cd $srcdir/PyNIO-${pkgver}
27 export F2CLIBS=gfortran
28 export F2CLIBS_PREFIX=/usr/lib
29 export GRIB2_PREFIX=/usr/lib
30 export HDFEOS_PREFIX=/usr/lib
31 export HDFEOS5_PREFIX=/usr/lib
32 export NETCDF_PREFIX=/usr/lib
33 export NETCDF4_PREFIX=/usr/lib
35 sed -i "s|hdf/||g" libsrc/NclHDFEOS.c
36 sed -i "s|hdf/||g" libsrc/NclHDFEOS5.c
37 sed -i "s|hdf/||g" libsrc/NclHDF.c
39 python2 setup.py install --root=${pkgdir}