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