blob: 772f2d3f6ae2faad68ee619c04df1879b8ce7784 (
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.3
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')
depends=(
'bash'
'cblas'
'ccr'
'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=(
'73082e9144215bb723b662b55f752e684a7308aa9813481e4fbd8a61265a762b'
'762e7d1857efed1abf4950d747b84e83f55b4557a1c63d839f9b6addb15fc7c0'
)
prepare() {
cd nco
patch -p0 -i "$srcdir/use_antlr2.patch"
}
build() {
cd nco
./configure \
--prefix=/usr \
--with-hdf5-plugin-path=/usr/lib/hdf5/plugin \
--enable-ccr
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:
|