mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 10:57:10 +02:00
54 lines
1.4 KiB
Text
54 lines
1.4 KiB
Text
# Maintainer: Leon White <badfunkstripe@gmail.com>
|
|
pkgname=eccodes
|
|
pkgver=2.38.3
|
|
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 \
|
|
-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="
|
|
871090c4333aeb76c83cb221e7c2feba3b1bdb53a6b015285c85025e6aa4c22c391f5114b9c57fcd42c6f39653f38a2a98a6e7e27336f68341a9e06995b1c883 eccodes-2.38.3-Source.tar.gz
|
|
8b4c7159dd7ed0e1e69068ec7dcabe94064f0d2abf9eac4fca2a9c730d500999e8edf1e7eeebba6fb12ae99b223c1b0843e31414538333c52f2508cb2d410151 eccodes_test_data.tar.gz
|
|
"
|