blob: 8b4d47f3e3aa95d175f23250b56d53e86ca432b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Contributor: Graziano Giuliani <giuliani@lamma.rete.toscana.it>
pkgname=ncview
pkgver=2.1.10
pkgrel=1
pkgdesc="A visual browser for netCDF format files"
arch=(i686 x86_64)
url="https://cirrus.ucsd.edu/ncview/"
license=('GPL3')
depends=(netcdf udunits netpbm libxaw xorg-fonts-misc)
source=("https://cirrus.ucsd.edu/~pierce/ncview/${pkgname}-${pkgver}.tar.gz")
md5sums=('1792cc259791356a6e29334547f4945f')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
sed -i configure -e 's/libppm/libnetpbm/g'
}
build() {
cd "$srcdir/$pkgname-$pkgver"
CFLAGS="$CFLAGS -Wno-incompatible-pointer-types" CC="$(nc-config --cc)" CPPFLAGS="$CFLAGS" ./configure \
--prefix=/usr \
--with-ppm_incdir=/usr/include/netpbm \
--with-ppm_libdir=/usr/lib
make
}
package()
{
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -m755 -d "$pkgdir/usr/share/ncview"
install -m644 *.ncmap "$pkgdir/usr/share/ncview"
install -Dm644 Ncview-appdefaults "$pkgdir/usr/share/X11/app-defaults/Ncview"
install -Dm644 data/ncview.1 "$pkgdir/usr/share/man/man1/ncview.1"
gzip --best "$pkgdir/usr/share/man/man1/ncview.1"
}
|