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

327.9. gnome-mines-50.0

Clear hidden mines from a minefield

50.0-1 · GPL-3.0-or-later · 1.0 SBU · 515.7 KiB, 87 files · 44_apps, 155 of 422 · ports/core/games-board/gnome-mines

Homepage: https://gitlab.gnome.org/GNOME/gnome-mines

Depends on: meson, ninja, vala, glib, gtk4, libadwaita, libgee, librsvg, gettext, itstool.

Required by: no port names it.

Sources: gnome-mines-50.0.tar.xz (350.2 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 gnome-mines'

build.sh:

meson setup build \
	--prefix=/usr --sysconfdir=/etc --libdir=lib \
	--buildtype=release \
	--wrap-mode=nodownload
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

if [ -d "$PKG/usr/share/help" ]; then
	find "$PKG/usr/share/help" -mindepth 1 -maxdepth 1 ! -name C -exec rm -rf {} +
fi

for s in 48 64 128; do
	install -d "$PKG/usr/share/icons/hicolor/${s}x${s}/apps"
	rsvg-convert -w $s -h $s data/icons/hicolor/scalable/org.gnome.Mines.svg \
		-o "$PKG/usr/share/icons/hicolor/${s}x${s}/apps/org.gnome.Mines.png"
done

cat > "$PKG/usr/share/applications/org.gnome.Mines.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Mines
GenericName=Minesweeper Game
Comment=Clear hidden mines from a minefield
TryExec=gnome-mines
Exec=gnome-mines
Categories=GNOME;GTK;Game;LogicGame;
Keywords=minesweeper;mines;puzzle;
Icon=org.gnome.Mines
Terminal=false
StartupNotify=true
StartupWMClass=org.gnome.Mines
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.gnome.Mines.desktop"

Programs: gnome-mines.

Directories: /usr/share/gnome-mines, /usr/share/help/C/gnome-mines, /usr/share/licenses/gnome-mines.