mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 00:34:26 +02:00
54 lines
1.4 KiB
Text
54 lines
1.4 KiB
Text
# Maintainer: Leon White <badfunkstripe@gmail.com>
|
|
pkgname=eccodes
|
|
pkgver=2.41.0
|
|
pkgrel=0
|
|
pkgdesc="API and tools for decoding and encoding WMO meteorological message formats"
|
|
url="https://github.com/ecmwf/eccodes"
|
|
# ecCodes only supports 64 bit platforms
|
|
# s390x blocked by netcdf-dev
|
|
arch="all !armhf !armv7 !s390x !x86"
|
|
license="Apache-2.0"
|
|
makedepends="
|
|
cmake
|
|
gfortran
|
|
git
|
|
jasper-dev
|
|
jpeg-dev
|
|
libaec-dev
|
|
netcdf-dev
|
|
openjpeg-dev
|
|
perl
|
|
py3-numpy
|
|
python3
|
|
"
|
|
|
|
source="
|
|
eccodes-$pkgver-Source.tar.gz::https://confluence.ecmwf.int/download/attachments/45757960/eccodes-$pkgver-Source.tar.gz?api=v2
|
|
https://get.ecmwf.int/repository/test-data/eccodes/eccodes_test_data.tar.gz
|
|
"
|
|
|
|
builddir="$srcdir/$pkgname-$pkgver-Source"
|
|
|
|
build() {
|
|
cmake -B build -G "Unix Makefiles" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
|
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
|
|
-DENABLE_EXTRA_TESTS=ON
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
f2a8153bf3541445c59b49c3460a64bebd4c2d7201fd4bfe9b548f45d78b8215e0a1b37f87a9cdf0a338dabda4faafbaf5d31374df7c297846751469f9b7a5c6 eccodes-2.41.0-Source.tar.gz
|
|
8b4c7159dd7ed0e1e69068ec7dcabe94064f0d2abf9eac4fca2a9c730d500999e8edf1e7eeebba6fb12ae99b223c1b0843e31414538333c52f2508cb2d410151 eccodes_test_data.tar.gz
|
|
"
|