333.5. kalarm-26.08.2
Personal alarm scheduler — message, sound, command and email reminders
26.08.2-1 · GPL-2.0-or-later AND LGPL-2.0-or-later AND GFDL-1.2-or-later AND BSD-3-Clause AND CC0-1.0 · 6.8 SBU · 5.7 MiB, 47 files · 44_apps, 327 of 422 · ports/core/pim/kalarm
Homepage: https://apps.kde.org/kalarm/
KAlarm is KDE’s personal alarm scheduler. An alarm shows a message, plays a sound, speaks its text, runs a command or sends an email, once or on a recurrence, with reminders before it and snoozing after it. Alarms live in KAlarm’s own calendar files; its Akonadi plugin adds birthday alarms from the address book, email alarms sent through kmailtransport, and the address book for email recipients. It can keep an icon in the system tray, through kstatusnotifieritem, to show and pause the pending alarms.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kauth, kcalendarcore, kcodecs, kcompletion, kconfig, kconfigwidgets, kcontacts, kcoreaddons, kcrash, kdbusaddons, kdoctools, kglobalaccel, kguiaddons, kholidays, ki18n, kiconthemes, kio, kitemmodels, kjobwidgets, kmime, knotifications, knotifyconfig, kservice, kstatusnotifieritem, ktextwidgets, kwidgetsaddons, kwindowsystem, kxmlgui, ktextaddons, akonadi, akonadi-contacts, akonadi-mime, kcalutils, kidentitymanagement, kmailtransport, mpv, vlc, kdepim-runtime.
Required by (1): kde-gear-pim.
Sources: kalarm-26.08.2.tar.xz (2.6 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kalarm'
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 CMAKE_REQUIRE_FIND_PACKAGE_KF6Auth=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6GlobalAccel=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6IconThemes=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6TextEditTextToSpeech=ON \
-D WITHOUT_X11=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— compile none of the translation catalogues inpo/. kpkg removes every non-English catalogue from the package anyway (see size and language policy), so this only saves build time.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Auth=ON— wake from suspend for an alarm through the real-time clock.ENABLE_RTC_WAKE_FROM_SUSPENDis on by default, but upstream turns it off by itself when it does not find kauth. Required, the RTC helper is always built.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6GlobalAccel=ON— global shortcuts for a new alarm and for spreading the alarm windows, through kglobalaccel, which upstream looks for withoutREQUIRED.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6IconThemes=ON—KIconTheme::initTheme()at start-up, which makes the icons follow the desktop’s icon theme and colour scheme. Upstream finds kiconthemes withoutREQUIREDand links it only when it is found.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— the handbook is built only when kdoctools is found; required, a missing kdoctools stops the configure instead of quietly dropping the handbook.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6TextEditTextToSpeech=ON— speaking an alarm’s text, through theTextEditTextToSpeechlibrary of ktextaddons, which exists only when ktextaddons found qt6-qtspeech. Upstream looks for it quietly; required, a ktextaddons without speech stops the configure instead of dropping the choice.-D WITHOUT_X11=ON— no X11 code. Upstream finds the X11 libraries whenever they are there and then uses them to keep alarm windows off other virtual desktops and to raise an edit dialog, all of it only when KAlarm runs as an X11 client. KAlarm runs as a Wayland client on KDOS.
Programs: kalarm, kalarmautostart.
Libraries: libkalarmcalendar.so, libkalarmplugin.so.
Directories: /usr/lib/qt6/plugins/pim6/kalarm, /usr/share/doc/HTML/en/kalarm, /usr/share/kalarm, /usr/share/licenses/kalarm.
Sound alarms play through a plugin, and upstream builds two: one on vlc and one on mpv. ENABLE_LIBVLC and ENABLE_LIBMPV are both on by default, each finds its library with REQUIRED, and the configure stops if both are off, so both libraries are in depends and the build has no optional sound backend.
The RTC helper is a KAuth helper, kalarm_helper, run as root by D-Bus activation for the action org.kde.kalarm.rtcwake.settimer. The action’s polkit default is auth_admin, so setting a wake-up time asks for an administrator’s password.
Global shortcuts are registered with the session’s kglobalacceld, which is installed with the Plasma session rather than named in this port’s depends; the shortcuts do nothing in a session without it.
Upstream installs kalarm.autostart.desktop into /etc/xdg/autostart with X-KDE-autostart-condition=kalarmrc:General:AutoStart:false, so KAlarm starts at login only once the user has turned on its own start-at-login setting.
kdepim-runtime is in depends for run time only: the Akonadi plugin reads birthdays from its address-book resources and sends email alarms through its mail dispatcher agent.
The Wayland app id is org.kde.kalarm, which main.cpp sets as the desktop file name; it is the name of the entry upstream installs, which carries no StartupWMClass, so the task manager matches the window to it with no change.
KF_SKIP_PO_PROCESSING stops only ki18n_install(): kdoctools_install() still builds the handbook in every translated language, and kpkg’s language rule removes /usr/share/doc/HTML/<lang>/ from the package.