1 # Maintainer: Pierre DOUCET <pierre at equinoxefr.org>
3 _upname=zyGrib # upstream, case-sensitive project name
6 pkgdesc="Weather data visualization, GRIB file viewer"
8 url="http://www.zygrib.org/"
10 depends=('qt>=4.5' 'bzip2' 'zlib>=1.2.3' 'proj>=4.6.0' 'qwt')
11 optdepends=('zygrib-maps: gshhs high-resolution maps from zygrib.org')
12 source=($_upname-$pkgver.tgz::http://www.zygrib.org/getfile.php?file=$_upname-$pkgver.tgz zygrib.patch \
13 zygrib.sh zygrib.desktop
14 zygrib.png) # creative commons licence
16 md5sums=('ce2811a7abe9cc8f6703374130add902'
17 'a518b13c4da80163d356d570bb577527'
18 '2fb3d2b4013d676591a31c13f88e44bf'
19 'c5b5f1af03375d4512c51e29656c4f31'
20 '522f9a9d71d16a76da48f601ba88fa49')
23 cd "$srcdir/$_upname-$pkgver"
25 patch -p1 -i $srcdir/zygrib.patch
33 install -d -m 755 $pkgdir/opt/$pkgname/{bin,data,data/colors,data/config,data/fonts/liberation-fonts,data/gis,data/img,data/maps/gshhs,data/stuff,data/tr}
34 install -d -m 755 $pkgdir/usr/{bin,share/{applications,pixmaps}}
35 install -D -m 755 $srcdir/zygrib.sh $pkgdir/usr/bin/zygrib
36 install -D -m 644 $srcdir/zygrib.desktop $pkgdir/usr/share/applications
37 install -D -m 644 $srcdir/zygrib.png $pkgdir/usr/share/pixmaps
38 install -D -m 755 $srcdir/$_upname-$pkgver/src/$_upname $pkgdir/opt/$pkgname/bin
39 install -D -m 755 $srcdir/$_upname-$pkgver/data/colors/* $pkgdir/opt/$pkgname/data/colors
40 #install -D -m 755 $srcdir/$_upname-$pkgver/data/config/* $pkgdir/opt/$pkgname/data/config
41 install -D -m 755 $srcdir/$_upname-$pkgver/data/fonts/liberation-fonts/* $pkgdir/opt/$pkgname/data/fonts/liberation-fonts
42 install -D -m 755 $srcdir/$_upname-$pkgver/data/gis/* $pkgdir/opt/$pkgname/data/gis
43 install -D -m 755 $srcdir/$_upname-$pkgver/data/img/* $pkgdir/opt/$pkgname/data/img
44 install -D -m 755 $srcdir/$_upname-$pkgver/data/maps/gshhs/* $pkgdir/opt/$pkgname/data/maps/gshhs
45 install -D -m 755 $srcdir/$_upname-$pkgver/data/stuff/* $pkgdir/opt/$pkgname/data/stuff
46 install -D -m 755 $srcdir/$_upname-$pkgver/data/tr/* $pkgdir/opt/$pkgname/data/tr