1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
6 pkgdesc="Definition files for GRIB API"
8 url="http://www.ecmwf.int/products/data/software/grib_api.html"
9 license=('LGPL3' 'GPL3')
11 source=(${url/g*/}/download/software_files/grib_api-$pkgver.tar.gz)
12 md5sums=('fe6c684e4a41477f3a6e97ab8892f35d')
15 cd "$srcdir"/grib_api-$pkgver
16 sed -i configure -e 's|share/samples|share/grib_api/samples|'
17 ./configure F77="gfortran" FC="gfortran" CPPFLAGS="$CPPFLAGS -fPIC" \
18 --prefix=/usr --enable-python --with-png-support \
19 --with-netcdf=/usr --datadir=/usr/share/grib_api \
20 --datarootdir=/usr/share/grib_api/definitions || return 1
21 cd definitions && make DESTDIR="$pkgdir" install || return 1