blob: 9c65f544c6cee2f9cfa2b031010aa4c293646c58 (
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
|
# Maintainer: Ralf Mueller <stark.dreamdetective@gmail.com>
# Contributor: Ralf Mueller <stark.dreamdetective@gmail.com>
pkgname=cdo
pkgver=2.3.0
fileID=29019
pkgrel=0
pkgdesc="Command line tool manipulate and analyse Climate model Data. Supported data formats are GRIB, netCDF, SERVICE, EXTRA and IEG."
url="https://code.zmaw.de/projects/cdo"
license=('BSD')
depends=('netcdf' 'hdf5' 'proj' 'libaec' 'eccodes' 'udunits' 'fftw' 'curl' 'jasper' 'magics++')
makedepends=('netcdf' 'hdf5' 'proj' 'libaec' 'eccodes' 'udunits' 'fftw' 'curl' 'jasper' 'magics++')
provides=()
conflicts=()
replaces=()
arch=(i686 x86_64)
backup=()
install=
source=(https://code.zmaw.de/attachments/download/${fileID}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('10c878227baf718a6917837527d4426c2d0022cfac4457c65155b9c57f091f6b')
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr \
--with-netcdf=/usr \
--with-udunits2=/usr \
--with-hdf5=/usr \
--with-szlib=/usr \
--with-proj=/usr \
--with-fftw3 \
--with-curl=/usr \
--with-eccodes=/usr \
--with-magics=/usr \
--with-libxml2=/usr \
--enable-openmp \
CFLAGS="-g -O3 -Wall" \
CXXFLAGS="-g -O3 -Wall"
make -j12 || return
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
rm -f $pkgdir/bin/cdotest
}
|