-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
64 lines (56 loc) · 1.88 KB
/
PKGBUILD
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
64
# Contributor: Graziano Giuliani <[email protected]>
# Contributor: Antonio Cervone <[email protected]>
pkgname=metview
pkgver=5.13.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=(cgal 'magics++>=4.9.0' qt6-5compat qt6-svg snappy)
makedepends=(boost cmake rpcsvc-proto gcc-fortran)
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(https://software.ecmwf.int/wiki/download/attachments/3964985/Metview-${pkgver}-Source.tar.gz
rpc.patch
blas.patch
gfortran.patch
string.patch
format_security.patch)
noextract=()
sha256sums=('bbf3f6df727ea1ba2a5e22540f62ab0d4c95e2a9b09106370bd2a2f0e5226f76'
'abd2f612ca08e9d2a7c288ab0d5512777411f9e6c6077e9b1ac62d4a444345a2'
'c80aed03a542364af5ff177a49e04052d017f992f9139300249be31466170096'
'a86a2a0c8c7a52c38f2c37d2366d0ff22beabf81723f8c6f9696a1743221c3f0'
'8e698feb27bb8c23f8db58f03c481d810ae14cbffde3860e33c6b0a6c328dfd4'
'55d0b927bf1af2ab7a31400cf72f77fc13d2bc047ce4b3c30463a6d3a40f01ed')
prepare() {
cd Metview-${pkgver}-Source
# patch --forward --strip=1 --input=$srcdir/rpc.patch
patch --forward --strip=1 --input=$srcdir/blas.patch
patch --forward --strip=1 --input=$srcdir/gfortran.patch
patch --forward --strip=1 --input=$srcdir/string.patch
patch --forward --strip=1 --input=$srcdir/format_security.patch
}
build() {
cmake \
-B build \
-S Metview-${pkgver}-Source \
-Dmagics_DIR=/usr/share/magics/cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=production \
-DCMAKE_INSTALL_DATADIR=/usr/share \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
..
make -C build
}
package()
{
make -C build DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et: