blob: 02b3fa9fe16a10bcfd2eb9c6bb0f6fa13992308c (
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
|
# Contributor: Graziano Giuliani <graziano.giuliani@poste.it>
pkgname=metview
pkgver=5.8.1
pkgrel=1
pkgdesc="ECMWF interactive meteorological application"
arch=(i686 x86_64)
url="https://software.ecmwf.int/wiki/display/METV/Metview"
license=('APACHE')
groups=(science)
depends=( 'magics++>=4.0.0' mksh openmotif netcdf-cxx-legacy eccodes qt5-webkit libxpm libtirpc cgal)
makedepends=('emos>=4.0.5' rpcsvc-proto)
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(https://software.ecmwf.int/wiki/download/attachments/3964985/Metview-${pkgver}-Source.tar.gz)
noextract=()
md5sums=('d48ac4cbd881a13dc240c2c0066eeb38')
build() {
cd Metview-${pkgver}-Source
# Fix problem for libc deprived of rpc. I will use tirpc package.
ln -sf /usr/include/tirpc/rpc mars-client/src
ln -sf /usr/include/tirpc/netconfig.h mars-client/src
mkdir -p build && cd build
cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CC_COMPILER=/usr/bin/gcc \
-DCMAKE_EXE_LINKER_FLAGS="-llapack" \
-Dmagics_DIR=/usr/share/magics/cmake \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=production \
-DCMAKE_INSTALL_DATADIR=/usr/share \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DCMAKE_CXX_STANDARD_LIBRARIES="-ltirpc" ..
sed -i mars-client/src/tools/CMakeFiles/filterbufr.dir/link.txt \
-e 's/-lm/-lm -lgfortran/'
make || return 1
}
package()
{
cd Metview-${pkgver}-Source/build
make DESTDIR="$pkgdir" install || return 1
}
# vim:set ts=2 sw=2 et:
|