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

327.18. kdiamond-26.08.2

Match three: swap neighbouring diamonds into lines of three or more

26.08.2-1 · GPL-2.0-or-later AND GFDL-1.2-or-later AND BSD-3-Clause AND CC0-1.0 · 0.4 SBU · 4.7 MiB, 31 files · 44_apps, 164 of 422 · ports/core/games-board/kdiamond

Homepage: https://apps.kde.org/kdiamond/

KDiamond is a match-three game: swap two neighbouring diamonds to make a line of three or more of one colour, against the clock or without one. Game events are notifications, so their sounds are set in its Configure Notifications dialog.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kconfig, kconfigwidgets, kcoreaddons, kcrash, kdbusaddons, kdoctools, ki18n, kiconthemes, knotifications, knotifyconfig, kwidgetsaddons, kxmlgui, libkdegames, gzip.

Required by (1): kde-gear-games.

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

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

Programs: kdiamond.

Directories: /usr/share/doc/HTML/en/kdiamond, /usr/share/kdiamond, /usr/share/licenses/kdiamond.

Its three events, removing a line, a move and the end of a game, are set to play a sound and nothing else; knotifications plays it through libcanberra, and a popup turned on in the dialog goes to the session’s notification server. The two stone sounds are files the package installs under /usr/share/sounds; the game-over sound is the sound-theme name game-over-winner, which the session’s theme, ocean-sound-theme, carries.

The window’s Wayland app_id is org.kde.kdiamond: KAboutData builds that desktop file name from the component name and its organisation domain, kde.org. It is the desktop entry’s file name too, and upstream’s entry sets no StartupWMClass, so the task manager pairs the window with its entry without a patch.