327.10. gnome-mahjongg-51.1
Match pairs of mahjong tiles until the board is clear
51.1-1 · GPL-3.0-or-later · 1.0 SBU · 2.7 MiB, 17 files · 44_apps, 156 of 422 · ports/core/games-board/gnome-mahjongg
Homepage: https://gitlab.gnome.org/GNOME/gnome-mahjongg
Depends on: meson, ninja, vala, glib, gtk4, libadwaita, librsvg, gettext.
Required by: no port names it.
Sources: gnome-mahjongg-51.1.tar.xz (2.9 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 gnome-mahjongg'
build.sh:
meson setup build \
--prefix=/usr --sysconfdir=/etc --libdir=lib \
--buildtype=release \
-Dprofile=default
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.Mahjongg.svg \
-o "$PKG/usr/share/icons/hicolor/${s}x${s}/apps/org.gnome.Mahjongg.png"
done
cat > "$PKG/usr/share/applications/org.gnome.Mahjongg.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Mahjongg
GenericName=Mahjongg Solitaire
Comment=Match tiles and clear the board
TryExec=gnome-mahjongg
Exec=gnome-mahjongg
Categories=GNOME;GTK;Game;BoardGame;LogicGame;
Keywords=mahjong;mahjongg;tiles;solitaire;puzzle;
Icon=org.gnome.Mahjongg
Terminal=false
StartupNotify=true
StartupWMClass=org.gnome.Mahjongg
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.gnome.Mahjongg.desktop"
Programs: gnome-mahjongg.
Directories: /usr/share/licenses/gnome-mahjongg.