updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / ncview2 / PKGBUILD
blob73aec5f6d10fc568cc32fdeb90624581971e920e
1 # Contributor: Graziano Giuliani <giuliani@lamma.rete.toscana.it>
3 pkgname=ncview2
4 pkgver=2.0beta4
5 pkgdname=ncview
6 pkgrel=3
7 pkgdesc="A visual browser for netCDF format files"
8 arch=(i686 x86_64)
9 url="http://meteora.ucsd.edu/~pierce/ncview_home_page.html"
10 license=('GPL3')
11 depends=(netcdf udunits2 netpbm libxaw)
12 source=(ftp://cirrus.ucsd.edu/pub/ncview/ncview-2.0beta4.tar.gz)
13 md5sums=('03968a8fdf13c71c7582c2352f771a85')
15 build() {
16   cd $srcdir/$pkgdname-$pkgver
17   sed -i configure -e 's/libppm/libnetpbm/g'
18   CC=gcc CPPFLAGS=$CFLAGS ./configure \
19     --prefix=/usr \
20     --with-ppm_incdir=/usr/include/netpbm \
21     --with-ppm_libdir=/usr/lib || return 1
22   make || 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
26   make \
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