327.4. kmahjongg-26.08.2
Mahjong solitaire: clear the board by matching pairs of free tiles
26.08.2-1 · GPL-2.0-or-later · 0.5 SBU · 1.4 MiB, 171 files · 44_apps, 150 of 422 · ports/core/games-board/kmahjongg
Homepage: https://apps.kde.org/kmahjongg/
KMahjongg is KDE’s Mahjong solitaire: free tiles are matched in pairs until the board is clear. Its tile sets and backgrounds come from libkmahjongg, the rest from libkdegames.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtwayland, qt6-qtsvg, kconfig, kcoreaddons, kcrash, kdbusaddons, ki18n, knewstuff, kxmlgui, kdoctools, libkdegames, libkmahjongg.
Required by (1): kde-gear-games.
Sources: kmahjongg-26.08.2.tar.xz (3.6 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 kmahjongg'
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 BUILD_DOC=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.kmahjongg.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=KMahjongg
GenericName=Mahjongg Solitaire
Comment=Match pairs of free tiles until the board is clear
TryExec=kmahjongg
Exec=kmahjongg -qwindowtitle %c
Icon=kmahjongg
X-DocPath=kmahjongg/index.html
Categories=Qt;KDE;Game;BoardGame;
Keywords=mahjong;mahjongg;tiles;solitaire;kmahjongg;
Terminal=false
StartupWMClass=org.kde.kmahjongg
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.kde.kmahjongg.desktop"
-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/; the image is English only (see Size and language policy).-D BUILD_DOC=ON— Builds the handbook, upstream’s default, named;-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ONrequires kdoctools for it.
Programs: kmahjongg.
Directories: /usr/share/doc/HTML/en/kmahjongg, /usr/share/kmahjongg, /usr/share/licenses/kmahjongg.
The desktop entry is KDOS’s own, written over upstream’s. Its StartupWMClass is org.kde.kmahjongg, the desktop file name KAboutData sets and the window’s Wayland app_id, so the task manager can match the window to its entry.