274.7. kweathercore-26.08.2
Library that fetches met.no weather forecasts and alerts by place, with QML bindings
26.08.2-1 · LGPL-2.0-or-later AND BSD-2-Clause AND CC-BY-4.0 AND CC0-1.0 · 1.0 SBU · 763.8 KiB, 51 files · 43_toolkits, 156 of 344 · ports/core/gis/kweathercore
Homepage: https://invent.kde.org/libraries/kweathercore
KWeatherCore fetches weather for a place: forecasts from the Norwegian Meteorological Institute’s api.met.no, place search and time zones from secure.geonames.org, and weather alerts from the national CAP feeds. It caches forecasts, marks each hour day or night from the sun’s position, and exposes all of it to QML as org.kde.weathercore. kweather is built on it.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtpositioning, qt6-qtdeclarative, ki18n, kholidays.
Required by (1): kweather.
Sources: kweathercore-26.08.2.tar.xz (85.8 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install kweathercore'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Builds none of the translation catalogues underpo/, which the package-wide English-only rule would remove anyway (see Size and language policy).
Libraries: libKWeatherCore.so.
Directories: /usr/include/KWeatherCore, /usr/lib/cmake/KWeatherCore, /usr/lib/qt6/qml/org/kde/weathercore, /usr/share/licenses/kweathercore.
Every forecast and place lookup is a request to a third-party service; nothing is fetched until an application asks for a place. The current position comes through Qt Positioning, from qt6-qtpositioning, and the day and night split uses KHolidays’ SunEvents from kholidays.