1 # Contributor: Graziano Giuliani <giuliani@lamma.rete.toscana.it>
7 pkgdesc="A visual browser for netCDF format files"
9 url="http://meteora.ucsd.edu/~pierce/ncview_home_page.html"
11 depends=(netcdf udunits2 netpbm libxaw)
12 source=(ftp://cirrus.ucsd.edu/pub/ncview/ncview-2.0beta4.tar.gz)
13 md5sums=('03968a8fdf13c71c7582c2352f771a85')
16 cd $srcdir/$pkgdname-$pkgver
17 sed -i configure -e 's/libppm/libnetpbm/g'
18 CC=gcc CPPFLAGS=$CFLAGS ./configure \
20 --with-ppm_incdir=/usr/include/netpbm \
21 --with-ppm_libdir=/usr/lib || return 1
23 install -m755 -d $pkgdir/usr/share/X11/app-defaults
24 install -m755 -d $pkgdir/usr/share/ncview
25 install -m755 -d $pkgdir/usr/share/man/man1
27 DESTDIR=$pkgdir install || return 1
28 install -m644 *.ncmap $pkgdir/usr/share/ncview
29 install -m644 Ncview-appdefaults $pkgdir/usr/share/X11/app-defaults/Ncview
30 install -m644 data/ncview.1 $pkgdir/usr/share/man/man1
31 gzip --best $pkgdir/usr/share/man/man1/ncview.1