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