1 # Contributor: Graziano Giuliani
6 pkgdesc="GRIB2 encoder/decoder (C version)"
7 url="http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2"
11 dependes=(jasper libpng)
12 source=(http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/$pkgname-$pkgver.tar)
13 md5sums=('3c56667423756a1e5aff175b89aec6d3')
16 cd ${srcdir}/${pkgname}-${pkgver}
17 sed -i makefile -e 's/-X64//' -e '/CFLAGS=/d' -e '/CC=/d'
18 CC=gcc CFLAGS="$CFLAGS -DUSE_JPEG2000 -DUSE_PNG" make || return 1
22 mkdir -p $startdir/pkg/usr/{lib,include}
23 cd ${srcdir}/${pkgname}-${pkgver}
24 install -m 644 libgrib2c.a $startdir/pkg/usr/lib
25 install -m 644 *.h $startdir/pkg/usr/include
28 # vim:set ts=2 sw=2 et: