333.17. kclock-26.08.2
Clock — alarms, timers, a stopwatch and world clocks, with a panel widget
26.08.2-1 · GPL-2.0-or-later AND LGPL-2.0-or-later · 9.8 SBU · 4.3 MiB, 31 files · 44_apps, 339 of 422 · ports/core/pim/kclock
Homepage: https://apps.kde.org/kclock/
KClock is KDE’s clock application, a Kirigami program from the convergent set: alarms, timers, a stopwatch and a list of world clocks. Alarms and timers belong to kclockd, a small daemon started from the session’s autostart directory and by D-Bus activation, so an alarm rings with the window closed. The port also installs a panel widget showing the next alarm and a KRunner plugin for setting timers.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qtmultimedia, qt6-qtwayland, kconfig, ki18n, kcoreaddons, kirigami, knotifications, kdbusaddons, kcrash, kstatusnotifieritem, ksvg, kio, kjobwidgets, kwindowsystem, kcmutils, libplasma, wayland, wayland-protocols, plasma-wayland-protocols, kirigami-addons, ocean-sound-theme, qqc2-desktop-style.
Required by (1): kde-gear-utilities.
Sources: kclock-26.08.2.tar.xz (723.1 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kclock'
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_PLASMOID=ON \
-D KCLOCK_BUILD_SHELL_OVERLAY=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
ln -s org.kde.kclock.svg "$PKG/usr/share/icons/hicolor/scalable/apps/kclock.svg"
-D BUILD_PLASMOID=ON— Build the panel widget, which links libplasma; upstream’s default, stated so that a missing libplasma stops the configure instead of being a reason to turn the widget off.-D KCLOCK_BUILD_SHELL_OVERLAY=ON— Build the over-the-lock-screen popup for a ringing alarm or a finished timer, over thekde_lockscreen_overlay_v1protocol from plasma-wayland-protocols; upstream’s default, stated for the same reason. The desktop entry names the interface inX-KDE-Wayland-Interfaces, which is how KWin grants it.-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).
Programs: kclock, kclockd.
Directories: /usr/share/licenses/kclock, /usr/share/plasma/plasmoids/org.kde.plasma.kclock_1x2.
The autostart entry for kclockd names the icon kclock, and the package installs it only as org.kde.kclock, so build.sh links the one name to the other.
kclockd wakes the machine for an alarm through PowerDevil’s org.kde.Solid.PowerManagement interface, which the Plasma session provides, so it is not in depends. Without PowerDevil the daemon counts down with an ordinary timer, which rings only while the machine is awake.
The default alarm sound is from ocean-sound-theme, with the freedesktop theme as the fallback, so the theme is in depends for run time. The plasmoid’s configuration page imports org.kde.kcmutils from kcmutils and the clock face draws with ksvg.
The daemon’s D-Bus activation file names kclockd by path and carries no SystemdService= line, so the session bus starts it directly.
The lock-screen overlay links Qt’s private GuiPrivate and WaylandClientPrivate modules from qt6-qtbase and qt6-qtwayland, so the port is rebuilt with every Qt release, as every port that uses a private Qt header is.