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

327.5. kblocks-26.08.2

The falling-blocks game, against the clock or a computer player

26.08.2-1 · GPL-2.0-or-later · 1.0 SBU · 2.3 MiB, 31 files · 44_apps, 151 of 422 · ports/core/games-board/kblocks

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

KBlocks is KDE’s falling-blocks game, played alone against the clock or against a computer player, with themes from libkdegames.

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

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

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

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

cat > "$PKG/usr/share/applications/org.kde.kblocks.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=KBlocks
GenericName=Falling Blocks Game
Comment=Fit the falling blocks into full rows
TryExec=kblocks
Exec=kblocks -qwindowtitle %c
Icon=kblocks
X-DocPath=kblocks/index.html
Categories=Qt;KDE;Game;ArcadeGame;
Keywords=tetris;blocks;falling;arcade;kblocks;
Terminal=false
StartupWMClass=org.kde.kblocks
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.kde.kblocks.desktop"

Programs: kblocks.

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

The desktop entry is KDOS’s own, written over upstream’s. Its StartupWMClass is org.kde.kblocks, the desktop file name KAboutData sets and the window’s Wayland app_id, so the task manager can match the window to its entry.