323.10. ksnakeduel-26.08.2
Light-cycle duel: make the other snake crash first, against the computer or a second player
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 · 535.4 KiB, 27 files · 44_apps, 145 of 422 · ports/core/games-action/ksnakeduel
Homepage: https://apps.kde.org/ksnakeduel/
KSnakeDuel is a light-cycle race: two snakes race across the field leaving a wall behind them, and the first to crash into a wall loses. A second player shares the keyboard, or the computer takes the other snake. It is a Qt 6 and KDE Frameworks application built on libkdegames.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtsvg, kcompletion, kconfig, kconfigwidgets, kcoreaddons, kcrash, kdbusaddons, kdoctools, kguiaddons, ki18n, kiconthemes, kwidgetsaddons, kxmlgui, libkdegames, gzip.
Required by (1): kde-gear-games.
Sources: ksnakeduel-26.08.2.tar.xz (569.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 ksnakeduel'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_TESTING=OFF \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D KF_SKIP_PO_PROCESSING=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).
Programs: ksnakeduel.
Directories: /usr/share/doc/HTML/en/ksnakeduel, /usr/share/ksnakeduel, /usr/share/licenses/ksnakeduel.
The themes’ SVGs are installed as SVGZ, which upstream always compresses with gzip on Linux and requires at configure time; gzip is in depends.
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.
The desktop entry is upstream’s org.kde.ksnakeduel.desktop. KAboutData derives the window’s Wayland app id, org.kde.ksnakeduel, from the component name and the apps.kde.org home page, so it is the entry’s file name and Plasma pairs the window with the entry without a StartupWMClass.