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

327.2. kmines-26.08.2

The classic minesweeper, on a themed board

26.08.2-1 · GPL-2.0-or-later · 1.7 SBU · 1.0 MiB, 37 files · 44_apps, 148 of 422 · ports/core/games-board/kmines

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

KMines is KDE’s minesweeper, on a themed board at preset or custom sizes, built on libkdegames.

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

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

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

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

cat > "$PKG/usr/share/applications/org.kde.kmines.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=KMines
GenericName=Minesweeper-like Game
Comment=Clear a minefield without setting any mine off
TryExec=kmines
Exec=kmines -qwindowtitle %c
Icon=kmines
X-DocPath=kmines/index.html
Categories=Qt;KDE;Game;StrategyGame;
Keywords=minesweeper;mines;puzzle;kmines;
Terminal=false
StartupWMClass=org.kde.kmines
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.kde.kmines.desktop"

Programs: kmines.

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

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