Skip to content

Commit

Permalink
Add gtk4x modpack installer .desktop and .metainfo.xml
Browse files Browse the repository at this point in the history
See osdn #48845

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
  • Loading branch information
cazfi committed Oct 18, 2023
1 parent 5187ac0 commit 8e2a51b
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down
12 changes: 12 additions & 0 deletions bootstrap/org.freeciv.gtk4x.mp.desktop
Original file line number Diff line number Diff line change
@@ -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;
43 changes: 43 additions & 0 deletions bootstrap/org.freeciv.gtk4x.mp.metainfo.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<name>Freeciv gtk-4+ modpack installer</name>
<id>org.freeciv.gtk4x.mp</id>
<project_license>GPL-2.0-or-later</project_license>
<metadata_license>CC0</metadata_license>
<summary>Gtk-4 based modpack installer for the Freeciv game</summary>
<description>
<p>
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...
</p>
<p>
Freeciv modpack utility can be used to automatically download and install custom rulesets, tilesets, soundsets, and maps for freeciv to use.
</p>
</description>
<launchable type="desktop-id">org.freeciv.gtk4x.mp.desktop</launchable>

<url type="homepage">https://www.freeciv.org/</url>
<url type="bugtracker">https://osdn.net/projects/freeciv/ticket/</url>
<url type="faq">https://www.freeciv.org/wiki/FAQ</url>
<url type="donation">https://www.freeciv.org/donate.html</url>
<url type="translate">https://www.freeciv.org/wiki/Translations</url>
<url type="contact">https://www.freeciv.org/maillists.html</url>

<!-- flatpak does not understand these
<url type="vcs-browser">https://github.com/freeciv/freeciv/</url>
<url type="contribute">https://www.freeciv.org/wiki/How_to_Contribute</url>
-->

<releases>
[release]
</releases>

<content_rating type="oars-1.0" />

<screenshots>
<screenshot type="default">
<image>https://files.freeciv.org/screenshots/3.0/modinst.gtk4-3.0.6.png</image>
</screenshot>
</screenshots>
<update_contact>freeciv-dev@freelists.org</update_contact>
</component>
13 changes: 13 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 8e2a51b

Please sign in to comment.