# Contributor: Ralf Mueller pkg=cdi flavour= pkgname=${pkg}${flavour} pkgver=1.7.2 fileID=12690 pkgrel=0 pkgdesc="CDI is a general purpose C-library for file IO in the geoscience area. Supported data formats are GRIB, netCDF, SERVICE, EXTRA and IEG. CDI is the IO part of CDO" url="https://code.zmaw.de/projects/cdi" license=('GPLv2') depends=('netcdf' 'grib_api' 'libaec') makedepends=('netcdf' 'grib_api' 'libaec') provides=() conflicts=() replaces=() arch=(i686 x86_64) backup=() install= source=(https://code.zmaw.de/attachments/download/${fileID}/${pkg}-${pkgver}.tar.gz) md5sums=('33a293e089d7f4c0f19bda1d490a20b6') build() { cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr --with-netcdf=/usr --with-grib_api=/usr --with-szlib CFLAGS=-fopenmp LIBS='-lpng -lopenjpeg' make -j12 || return 1 } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir/" install install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" rm -f $pkgdir/usr/bin/cdi }