From c596c90a96678a40d76594b492c2e99e359e6639 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 23 Oct 2023 07:45:18 +0300 Subject: [PATCH 53/53] Add gtk4x-client .desktop and .metainfo.xml See osdn #48897 Signed-off-by: Marko Lindqvist --- bootstrap/Makefile.am | 7 ++++ bootstrap/org.freeciv.gtk4x.desktop | 24 +++++++++++ bootstrap/org.freeciv.gtk4x.metainfo.xml.in | 45 +++++++++++++++++++++ meson.build | 13 ++++++ 4 files changed, 89 insertions(+) create mode 100644 bootstrap/org.freeciv.gtk4x.desktop create mode 100644 bootstrap/org.freeciv.gtk4x.metainfo.xml.in diff --git a/bootstrap/Makefile.am b/bootstrap/Makefile.am index 8bfa5eafef..577b0e9e7d 100644 --- a/bootstrap/Makefile.am +++ b/bootstrap/Makefile.am @@ -24,6 +24,7 @@ EXTRA_DIST = freeciv.project \ langstat_ruledit.txt \ org.freeciv.gtk322.desktop \ org.freeciv.gtk4.desktop \ + org.freeciv.gtk5.desktop \ org.freeciv.sdl2.desktop \ org.freeciv.qt.desktop \ org.freeciv.server.desktop \ @@ -34,6 +35,7 @@ EXTRA_DIST = freeciv.project \ org.freeciv.ruledit.desktop \ org.freeciv.gtk322.metainfo.xml.in \ org.freeciv.gtk4.metainfo.xml.in \ + org.freeciv.gtk4x.metainfo.xml.in \ org.freeciv.sdl2.metainfo.xml.in \ org.freeciv.qt.metainfo.xml.in \ org.freeciv.server.metainfo.xml.in \ @@ -69,6 +71,11 @@ metainfofile_DATA += org.freeciv.gtk4.metainfo.xml desktopfile_DATA += org.freeciv.gtk4.desktop endif +if CLIENT_GUI_GTK_5 +metainfofile_DATA += org.freeciv.gtk4x.metainfo.xml +desktopfile_DATA += org.freeciv.gtk4x.desktop +endif + if CLIENT_GUI_QT metainfofile_DATA += org.freeciv.qt.metainfo.xml desktopfile_DATA += org.freeciv.qt.desktop diff --git a/bootstrap/org.freeciv.gtk4x.desktop b/bootstrap/org.freeciv.gtk4x.desktop new file mode 100644 index 0000000000..15014a4001 --- /dev/null +++ b/bootstrap/org.freeciv.gtk4x.desktop @@ -0,0 +1,24 @@ +[Desktop Entry] +Name=Freeciv +Name[ca]=Freeciv +Name[es]=Freeciv +Name[fr]=Freeciv +Name[nb]=Freeciv +Name[pt]=Freeciv +Name[ru]=Freeciv +Comment=Turn-based strategy game inspired by the history of human civilization +Comment[ca]=Joc d'estratègia inspirat en la història de la civilització humana +Comment[da]=Strategispil inspireret af den menneskelige civilisations historie +Comment[de]=Rundenbasiertes Strategiespiel, inspiriert durch die Geschichte der menschlichen Zivilisation +Comment[fi]=Ihmiskunnan historian inspiroima vuoropohjainen strategiapeli +Comment[nb]=Strategispill inspirert av historien til menneskelig sivilisasjon +Comment[pt]=Jogo de estratégia por turnos inspirado na História da civilização humana +Comment[ru]=Пошаговая стратегическая игра, вдохновлённая историей человеческой цивилизации +Comment[sv]=Turordningsbaserat strategispel inspirerat av den mänskliga historien +Exec=freeciv-gtk4x +Icon=freeciv-client +StartupNotify=true +Terminal=false +Type=Application +Categories=GTK;Game;StrategyGame; +Keywords=strategy;simulation;civilization;tiles;history;mankind;multiplayer; diff --git a/bootstrap/org.freeciv.gtk4x.metainfo.xml.in b/bootstrap/org.freeciv.gtk4x.metainfo.xml.in new file mode 100644 index 0000000000..5b7818116d --- /dev/null +++ b/bootstrap/org.freeciv.gtk4x.metainfo.xml.in @@ -0,0 +1,45 @@ + + + Freeciv gtk4x client + org.freeciv.gtk4x + GPL-2.0-or-later + CC0 + Gtk4 based client for the Freeciv game + +

+ Freeciv is a Free and Open Source empire-building strategy game inspired by the history of human civilization. The game commences in prehistory and your + mission is to lead your tribe from the Stone Age to the Space Age... +

+

+ This client for connecting to network games, or to launch local single-player games, is based on gtk4 widget set. +

+
+ org.freeciv.gtk4x.desktop + + https://www.freeciv.org/ + https://osdn.net/projects/freeciv/ticket/ + https://www.freeciv.org/wiki/FAQ + https://www.freeciv.org/donate.html + https://www.freeciv.org/wiki/Translations + https://www.freeciv.org/maillists.html + + + + + [release] + + + + intense + + + + + https://files.freeciv.org/screenshots/3.1/client.gtk4-3.1.0-beta2.png + + + freeciv-dev@freelists.org +
diff --git a/meson.build b/meson.build index 25b3a80372..cf9e72d5b0 100644 --- a/meson.build +++ b/meson.build @@ -3417,6 +3417,19 @@ executable('freeciv-gtk4x', install: true ) +install_data( + 'bootstrap/org.freeciv.gtk4x.desktop', + install_dir : join_paths(get_option('prefix'), 'share/applications') + ) + +custom_target('mi_gtk4x', + input: 'bootstrap/org.freeciv.gtk4x.metainfo.xml.in', + output: '@BASENAME@', + command: [sh_exe, files('bootstrap/generate_metainfo.sh'), + '@OUTPUT@', b_root, 'development'], + install: true, + install_dir: join_paths(get_option('datadir'), 'metainfo')) + endif if qtver == 'qt6' or qtver == 'qt6x' -- 2.42.0