updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / grib_def / PKGBUILD
blob49d1fb632f905e831f6c02c98cf655038c3d25e2
1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
3 pkgname=grib_def
4 pkgver=1.9.9
5 pkgrel=2
6 pkgdesc="Definition files for GRIB API"
7 arch=('any')
8 url="http://www.ecmwf.int/products/data/software/grib_api.html"
9 license=('LGPL3' 'GPL3')
10 depends=('grib_api')
11 source=(${url/g*/}/download/software_files/grib_api-$pkgver.tar.gz)
12 md5sums=('fe6c684e4a41477f3a6e97ab8892f35d')
14 build() {
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