From 607c0750290ff051f88798ef8831700bf5c67632 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 15 Oct 2023 02:49:23 +0300 Subject: [PATCH 28/28] Add gtk4x modpack installer .desktop and .metainfo.xml See osdn #48845 Signed-off-by: Marko Lindqvist --- bootstrap/Makefile.am | 2 + bootstrap/org.freeciv.gtk4x.mp.desktop | 12 ++++++ .../org.freeciv.gtk4x.mp.metainfo.xml.in | 43 +++++++++++++++++++ meson.build | 13 ++++++ 4 files changed, 70 insertions(+) create mode 100644 bootstrap/org.freeciv.gtk4x.mp.desktop create mode 100644 bootstrap/org.freeciv.gtk4x.mp.metainfo.xml.in diff --git a/bootstrap/Makefile.am b/bootstrap/Makefile.am index de68228b97..8bfa5eafef 100644 --- a/bootstrap/Makefile.am +++ b/bootstrap/Makefile.am @@ -29,6 +29,7 @@ EXTRA_DIST = freeciv.project \ org.freeciv.server.desktop \ org.freeciv.gtk3.mp.desktop \ org.freeciv.gtk4.mp.desktop \ + org.freeciv.gtk4x.mp.desktop \ org.freeciv.qt.mp.desktop \ org.freeciv.ruledit.desktop \ org.freeciv.gtk322.metainfo.xml.in \ @@ -38,6 +39,7 @@ EXTRA_DIST = freeciv.project \ org.freeciv.server.metainfo.xml.in \ org.freeciv.gtk3.mp.metainfo.xml.in \ org.freeciv.gtk4.mp.metainfo.xml.in \ + org.freeciv.gtk4x.mp.metainfo.xml.in \ org.freeciv.qt.mp.metainfo.xml.in \ org.freeciv.ruledit.metainfo.xml.in \ config.rpath \ diff --git a/bootstrap/org.freeciv.gtk4x.mp.desktop b/bootstrap/org.freeciv.gtk4x.mp.desktop new file mode 100644 index 0000000000..dfc1131803 --- /dev/null +++ b/bootstrap/org.freeciv.gtk4x.mp.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=Freeciv modpack installer (gtk4x) +Name[ru]=Установщик модпаков Freeciv (gtk4x) +Comment=Download and install add-ons for Freeciv +Comment[ru]=Скачивайте и устанавливайте дополнения для Freeciv +Exec=freeciv-mp-gtk4x +Icon=freeciv-modpack +StartupNotify=true +Terminal=false +Type=Application +Categories=GTK;Game;StrategyGame; +Keywords=strategy;simulation;civilization;tiles;history;mankind;multiplayer;download;installer; diff --git a/bootstrap/org.freeciv.gtk4x.mp.metainfo.xml.in b/bootstrap/org.freeciv.gtk4x.mp.metainfo.xml.in new file mode 100644 index 0000000000..bcec652e8f --- /dev/null +++ b/bootstrap/org.freeciv.gtk4x.mp.metainfo.xml.in @@ -0,0 +1,43 @@ + + + Freeciv gtk-4+ modpack installer + org.freeciv.gtk4x.mp + GPL-2.0-or-later + CC0 + Gtk-4 based modpack installer 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... +

+

+ Freeciv modpack utility can be used to automatically download and install custom rulesets, tilesets, soundsets, and maps for freeciv to use. +

+
+ org.freeciv.gtk4x.mp.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] + + + + + + + https://files.freeciv.org/screenshots/3.0/modinst.gtk4-3.0.6.png + + + freeciv-dev@freelists.org +
diff --git a/meson.build b/meson.build index 97646d5ddb..1ee100452f 100644 --- a/meson.build +++ b/meson.build @@ -4103,6 +4103,19 @@ executable('freeciv-mp-gtk4x', install: true ) +install_data( + 'bootstrap/org.freeciv.gtk4x.mp.desktop', + install_dir : join_paths(get_option('prefix'), 'share/applications') + ) + +custom_target('mi_mp_gtk4x', + input: 'bootstrap/org.freeciv.gtk4x.mp.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 get_option('fcmp').contains('qt') -- 2.42.0