blob: c6235699bfbada60a1da33345486b08403451d4d (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Blair Bonnett <blair.bonnett at gmail>
# Contributor: Graziano Giuliani <giuliani@lamma.rete.toscana.it>
# Contributor: Graziano Giuliani <graziano.giuliani@gmail.com>
pkgname=nco
pkgver=5.3.6
pkgrel=1
pkgdesc="netCDF Operators allow users to manipulate and analyse data stored in NetCDF files"
url="http://nco.sourceforge.net/"
license=('BSD-3-Clause')
arch=('x86_64')
# N.B., ccr is currently not needed as all its filters are now integrated into netcdf-c:
# https://github.com/Unidata/netcdf-c/issues/3121
depends=(
'bash'
'cblas'
'curl'
'glibc'
'gcc-libs'
'gsl'
'netcdf'
'udunits'
)
makedepends=(
'antlr2'
'git'
)
options=('!libtool')
source=(
"git+https://github.com/nco/nco.git#tag=$pkgver"
'use_antlr2.patch'
)
sha256sums=(
'3eebc9604ef0a33a85980163ba2309c1db7234f58970bf32769885e3fa2494ce'
'5121eb3839bf8b25bec041e48b0ee40a111301515511a93a2f7166f440b64d8a'
)
prepare() {
cd nco
patch -p0 -i "$srcdir/use_antlr2.patch"
}
build() {
cd nco
./configure \
--prefix=/usr \
--with-hdf5-plugin-path=/usr/lib/hdf5/plugin
make
}
check() {
cd nco
make check
}
package() {
cd nco
make DESTDIR="$pkgdir" install install-html
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
# vim:set ts=2 sw=2 et:
|