327.26. klickety-26.08.2
SameGame-style puzzle: clear the board by removing groups of same-coloured blocks
26.08.2-1 · GPL-2.0-or-later AND GFDL-1.2-or-later AND BSD-3-Clause AND CC0-1.0 · 0.8 SBU · 1.1 MiB, 45 files · 44_apps, 172 of 422 · ports/core/games-board/klickety
Homepage: https://apps.kde.org/klickety/
Klickety is an adaptation of the Clickomania game: click a group of two or more touching blocks of one colour to remove it, and clear as much of the board as possible. Started with --KSameMode it plays the KSame rules, scoring by group size, which upstream offers as a second menu entry, SameGame (org.kde.ksame.desktop).
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kconfig, kconfigwidgets, kcoreaddons, kcrash, kdbusaddons, kdoctools, ki18n, kiconthemes, kio, kwidgetsaddons, kxmlgui, libkdegames, gzip, perl.
Required by (1): kde-gear-games.
Sources: klickety-26.08.2.tar.xz (1.4 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 klickety'
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
-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).kdoctools_install()still builds the handbook in every translated language, and kpkg’s language rule removes/usr/share/doc/HTML/<lang>/from the package.-D CMAKE_DISABLE_FIND_PACKAGE_7Zip=ON— Compresses the theme SVGs to SVGZ with gzip. Upstream’scmake/InternalMacros.cmakeuses 7-Zip’s7zzwhenever it finds one and otherwise requires gzip; 7zip is built in an earlier phase, so without the switch the package would follow whatever the build root holds. gzip runs with-n, which writes no file name or time stamp into the SVGZ files.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— The handbook, through kdoctools, which upstream looks for as optional; required, a missing one stops the configure instead of leaving the handbook out.
Programs: klickety.
Directories: /usr/share/doc/HTML/en/klickety, /usr/share/klickety, /usr/share/licenses/klickety, /usr/share/sounds/klickety.
The window’s Wayland app_id is org.kde.klickety: 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.
The SameGame entry starts the same program with --KSameMode, and its window carries the same app_id, so the task manager shows a SameGame window under Klickety’s entry and icon.
The package installs a configuration update, klickety.upd, whose script klickety-2.0-inherit-ksame-highscore.pl copies the [KHighscore] group of a ksamerc into klicketyrc as [KHighscore_KSame]. kconf_update runs the script with perl, from perl, which is in depends for that reason.