Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

274.4. kopeninghours-26.08.2

Library that parses, validates and evaluates OpenStreetMap opening_hours expressions

26.08.2-1 · LGPL-2.0-or-later AND BSD-3-Clause AND CC0-1.0 · 0.9 SBU · 543.4 KiB, 25 files · 43_toolkits, 149 of 344 · ports/core/gis/kopeninghours

Homepage: https://invent.kde.org/libraries/kopeninghours

KOpeningHours parses, validates and evaluates OpenStreetMap opening_hours expressions: it says whether a place is open at a given time, when it next opens or closes, and how an expression reads in words, with public and school holidays taken from kholidays. The QML module org.kde.kopeninghours offers the same to QML. kosmindoormap and KDE Itinerary use it to show whether a station, shop or venue is open.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kholidays, ki18n, flex, bison.

Required by (2): itinerary, kosmindoormap.

Sources: kopeninghours-26.08.2.tar.xz (75.3 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 kopeninghours'

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 \
	-D BUILD_WITH_QT6=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Qml=ON \
	-D CMAKE_DISABLE_FIND_PACKAGE_Python=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Libraries: libKOpeningHours.so.

Directories: /usr/include/KOpeningHours, /usr/include/kopeninghours, /usr/lib/cmake/KOpeningHours, /usr/lib/qt6/qml/org/kde/kopeninghours, /usr/share/licenses/kopeninghours.

The expression grammar is generated at build time with flex and bison, which the configure requires.