updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / g2clib / PKGBUILD
blob1c2df83d5115d5b21d07d40855b2c82cc12f318d
1 # Contributor: Graziano Giuliani
3 pkgname=g2clib
4 pkgver=1.2.3
5 pkgrel=1
6 pkgdesc="GRIB2 encoder/decoder (C version)"
7 url="http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2"
8 license="GPL"
9 arch=('i686' 'x86_64')
10 provides=(g2clib)
11 dependes=(jasper libpng)
12 source=(http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/$pkgname-$pkgver.tar)
13 md5sums=('0c328b424ab30cc362d9cbf79d94bba5')
15 build() {
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
21 package() {
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: