Better AppStream metadata (#14648)

Co-authored-by: grorp <gregor.parzefall@posteo.de>
This commit is contained in:
AFCMS 2024-07-14 21:57:29 +02:00 committed by GitHub
parent ecf6295b4a
commit 8e59d8b682
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 163 additions and 100 deletions

@ -156,7 +156,7 @@ elseif(UNIX) # Linux, BSD etc
set(EXAMPLE_CONF_DIR ".") set(EXAMPLE_CONF_DIR ".")
set(MANDIR "unix/man") set(MANDIR "unix/man")
set(XDG_APPS_DIR "unix/applications") set(XDG_APPS_DIR "unix/applications")
set(APPDATADIR "unix/metainfo") set(METAINFODIR "unix/metainfo")
set(ICONDIR "unix/icons") set(ICONDIR "unix/icons")
set(LOCALEDIR "locale") set(LOCALEDIR "locale")
else() else()
@ -167,7 +167,7 @@ elseif(UNIX) # Linux, BSD etc
set(MANDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_MANDIR}") set(MANDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_MANDIR}")
set(EXAMPLE_CONF_DIR ${DOCDIR}) set(EXAMPLE_CONF_DIR ${DOCDIR})
set(XDG_APPS_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/applications") set(XDG_APPS_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/applications")
set(APPDATADIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/metainfo") set(METAINFODIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/metainfo")
set(ICONDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/icons") set(ICONDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/icons")
set(LOCALEDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LOCALEDIR}") set(LOCALEDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LOCALEDIR}")
endif() endif()
@ -258,7 +258,7 @@ install(FILES "minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}")
if(UNIX AND NOT APPLE) if(UNIX AND NOT APPLE)
install(FILES "doc/minetest.6" "doc/minetestserver.6" DESTINATION "${MANDIR}/man6") install(FILES "doc/minetest.6" "doc/minetestserver.6" DESTINATION "${MANDIR}/man6")
install(FILES "misc/net.minetest.minetest.desktop" DESTINATION "${XDG_APPS_DIR}") install(FILES "misc/net.minetest.minetest.desktop" DESTINATION "${XDG_APPS_DIR}")
install(FILES "misc/net.minetest.minetest.appdata.xml" DESTINATION "${APPDATADIR}") install(FILES "misc/net.minetest.minetest.metainfo.xml" DESTINATION "${METAINFODIR}")
install(FILES "misc/minetest.svg" DESTINATION "${ICONDIR}/hicolor/scalable/apps") install(FILES "misc/minetest.svg" DESTINATION "${ICONDIR}/hicolor/scalable/apps")
install(FILES "misc/minetest-xorg-icon-128.png" install(FILES "misc/minetest-xorg-icon-128.png"
DESTINATION "${ICONDIR}/hicolor/128x128/apps" DESTINATION "${ICONDIR}/hicolor/128x128/apps"

@ -1,87 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>net.minetest.minetest.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>LGPL-2.1+ and CC-BY-SA-3.0 and MIT and Apache-2.0</project_license>
<content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">mild</content_attribute>
<content_attribute id="violence-fantasy">mild</content_attribute>
<content_attribute id="social-chat">intense</content_attribute>
<content_attribute id="social-info">mild</content_attribute>
</content_rating>
<name>Minetest</name>
<summary>Multiplayer infinite-world block sandbox game</summary>
<summary xml:lang="de">Mehrspieler-Sandkastenspiel mit unendlichen Blockwelten</summary>
<description>
<p>
Minetest is an infinite-world block sandbox game and game engine.
</p><p xml:lang="de">
Minetest ist ein Sandkastenspiel und eine Spielengine mit unendlichen Welten.
</p><p>
Players can create and destroy various types of blocks in a
three-dimensional open world. This allows forming structures in
every possible creation, on multiplayer servers or in singleplayer.
</p><p xml:lang="de">
Spieler können in einer offenen 3D-Welt viele verschiedene Arten von
Blöcken platzieren und abbauen. Dies erlaubt das Bauen von vielfältigen
Strukturen im Einzelspieler oder auf Mehrspielerservern.
</p><p>
Minetest is designed to be simple, stable, and portable.
It is lightweight enough to run on fairly old hardware.
</p><p xml:lang="de">
Minetest wurde entworfen, um einfach, stabil und portabel zu sein.
Es ist leichtgewichtig genug, um auf relativ alter Hardware zu laufen.
</p><p>
Minetest has many features, including:
</p><p xml:lang="de">
Minetest besitzt viele Features, unter anderem:
</p>
<ul>
<li>Ability to walk around, dig, and build in a near-infinite voxel world</li>
<li xml:lang="de">Die Möglichkeit, in einer nahezu unendlichen Voxel-Welt herumzulaufen, zu graben und zu bauen</li>
<li>Crafting of items from raw materials</li>
<li xml:lang="de">Fertigen von Items aus Rohmaterialien</li>
<li>Fast and able to run on old and slow hardware</li>
<li xml:lang="de">Gute Performance selbst auf älterer und langsamer Hardware</li>
<li>A simple modding API that supports many additions and modifications to the game</li>
<li xml:lang="de">Eine einfache Modding-API, die viele Ergänzungen und Änderungen am Spiel unterstützt</li>
<li>Multiplayer support via servers hosted by users</li>
<li xml:lang="de">Mehrspieler auf selber gehosteten Servern</li>
<li>Beautiful lightning-fast map generator</li>
<li xml:lang="de">Wunderschöner, blitzschneller Kartengenerator</li>
</ul>
</description>
<screenshots>
<screenshot type="default">
<image>http://www.minetest.net/media/gallery/1.jpg</image>
</screenshot>
<screenshot>
<image>http://www.minetest.net/media/gallery/3.jpg</image>
</screenshot>
<screenshot>
<image>http://www.minetest.net/media/gallery/5.jpg</image>
</screenshot>
</screenshots>
<keywords>
<keyword>sandbox</keyword>
<keyword>world</keyword>
<keyword>mining</keyword>
<keyword>multiplayer</keyword>
</keywords>
<url type="homepage">https://www.minetest.net</url>
<url type="bugtracker">https://www.minetest.net/development/#reporting-issues</url>
<url type="translate">https://dev.minetest.net/Translation</url>
<url type="donation">https://www.minetest.net/development/#donate</url>
<url type="faq">https://wiki.minetest.net/FAQ</url>
<url type="help">https://wiki.minetest.net</url>
<url type="vcs-browser">https://github.com/minetest/minetest</url>
<url type="contribute">https://www.minetest.net/get-involved/</url>
<provides>
<binary>minetest</binary>
</provides>
<translation type="gettext">minetest</translation>
<update_contact>sfan5@live.de</update_contact>
<releases>
<release date="2023-12-04" version="5.8.0"/>
</releases>
</component>

@ -1,13 +1,9 @@
[Desktop Entry] [Desktop Entry]
Name=Minetest Name=Minetest
GenericName=Minetest GenericName=Minetest
Comment=Multiplayer infinite-world block sandbox Comment=Block-based multiplayer game platform
Comment[de]=Mehrspieler-Sandkastenspiel mit unendlichen Blockwelten Comment[de]=Blockbasierte Mehrspieler-Spieleplattform
Comment[es]=Juego sandbox multijugador con mundos infinitos Comment[fr]=Plate-forme de jeu multijoueurs à base de blocs
Comment[fr]=Jeu multijoueurs de type bac à sable avec des mondes infinis
Comment[ja]=
Comment[ru]=Игра-песочница с безграничным миром, состоящим из блоков
Comment[tr]=Tek-Çok oyuncuyla küplerden sonsuz dünyalar inşa et
Exec=minetest Exec=minetest
Icon=minetest Icon=minetest
Terminal=false Terminal=false

@ -0,0 +1,154 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>net.minetest.minetest</id>
<name>Minetest</name>
<summary>Block-based multiplayer game platform</summary>
<summary xml:lang="de">Blockbasierte Mehrspieler-Spieleplattform</summary>
<summary xml:lang="fr">Plate-forme de jeu multijoueurs à base de blocs</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>LGPL-2.1+ AND CC-BY-SA-3.0 AND MIT AND Apache-2.0</project_license>
<developer id="net.minetest">
<name>Minetest Team</name>
</developer>
<supports>
<control>pointing</control>
<control>keyboard</control>
<control>touch</control>
<internet>offline-only</internet>
</supports>
<requires>
<display_length compare="ge">360</display_length>
</requires>
<content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">mild</content_attribute>
<content_attribute id="violence-fantasy">mild</content_attribute>
<content_attribute id="social-chat">intense</content_attribute>
<content_attribute id="social-info">mild</content_attribute>
</content_rating>
<description>
<p>
Minetest is a block-based sandbox game platform.
</p>
<p xml:lang="de">
Minetest ist eine blockbasierte Sandbox-Spielplattform.
</p>
<p xml:lang="fr">
Minetest est une plateforme de jeu de type bac à sable à base de blocs.
</p>
<p>
Players can create and destroy various types of blocks in a
three-dimensional open world. This allows forming structures in
every possible creation, on multiplayer servers or in singleplayer.
</p>
<p xml:lang="de">
Spieler können in einer offenen 3D-Welt viele verschiedene Arten von
Blöcken platzieren und abbauen. Dies erlaubt das Bauen von vielfältigen
Strukturen im Einzelspieler oder auf Mehrspielerservern.
</p>
<p xml:lang="fr">
Les joueurs peuvent créer et détruire différents types de blocs dans un
monde ouvert tridimensionnel. Cela permet de créer des structures de toutes les
formes possibles, sur des serveurs multijoueurs ou en solo.
</p>
<p>
Minetest is designed to be simple, stable, and portable.
It is lightweight enough to run on fairly old hardware.
</p>
<p xml:lang="de">
Minetest wurde entworfen, um einfach, stabil und portabel zu sein.
Es ist leichtgewichtig genug, um auf relativ alter Hardware zu laufen.
</p>
<p xml:lang="fr">
Minetest est conçu pour être simple, stable et portable.
Il est suffisamment léger pour fonctionner sur du matériel relativement ancien.
</p>
<p>
Minetest has many features, including:
</p>
<p xml:lang="de">
Minetest besitzt viele Features, unter anderem:
</p>
<p xml:lang="fr">
Minetest offre de nombreuses fonctionnalités, notamment :
</p>
<ul>
<li>Ability to walk around, dig, and build in a near-infinite voxel world</li>
<li xml:lang="de">Die Möglichkeit, in einer nahezu unendlichen Voxel-Welt herumzulaufen, zu graben und zu
bauen
</li>
<li xml:lang="fr">La possibilité de se promener, de creuser et de construire dans un monde voxel quasi-infini
</li>
<li>Crafting of items from raw materials</li>
<li xml:lang="de">Fertigen von Items aus Rohmaterialien</li>
<li xml:lang="fr">Fabrication d'objets à partir de matières premières</li>
<li>A simple modding API that supports many additions and modifications to the game</li>
<li xml:lang="de">Eine einfache Modding-API, die viele Ergänzungen und Änderungen am Spiel unterstützt</li>
<li xml:lang="fr">Une API de modding simple qui permet de nombreux ajouts et modifications au jeu</li>
<li>Multiplayer support via servers hosted by users</li>
<li xml:lang="de">Mehrspieler auf selber gehosteten Servern</li>
<li xml:lang="fr">Prise en charge du multijoueur via des serveurs hébergés par les utilisateurs</li>
<li>Beautiful lightning-fast map generator</li>
<li xml:lang="de">Wunderschöner, blitzschneller Kartengenerator</li>
<li xml:lang="fr">Générateur de cartes très rapide</li>
</ul>
</description>
<launchable type="desktop-id">net.minetest.minetest.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>https://www.minetest.net/media/gallery/1.jpg</image>
</screenshot>
<screenshot>
<image>https://www.minetest.net/media/gallery/3.jpg</image>
</screenshot>
<screenshot>
<image>https://www.minetest.net/media/gallery/5.jpg</image>
</screenshot>
</screenshots>
<icon type="stock">minetest</icon>
<categories>
<category>Game</category>
<category>Simulation</category>
</categories>
<keywords>
<keyword>sandbox</keyword>
<keyword>world</keyword>
<keyword>mining</keyword>
<keyword>crafting</keyword>
<keyword>blocks</keyword>
<keyword>nodes</keyword>
<keyword>multiplayer</keyword>
<keyword>roleplaying</keyword>
</keywords>
<url type="homepage">https://www.minetest.net</url>
<url type="bugtracker">https://www.minetest.net/get-involved/#reporting-issues</url>
<url type="translate">https://dev.minetest.net/Translation</url>
<url type="donation">https://www.minetest.net/get-involved/#donate</url>
<url type="faq">https://wiki.minetest.net/FAQ</url>
<url type="help">https://wiki.minetest.net</url>
<url type="vcs-browser">https://github.com/minetest/minetest</url>
<url type="contribute">https://www.minetest.net/get-involved</url>
<provides>
<binary>minetest</binary>
</provides>
<translation type="gettext">minetest</translation>
<update_contact>celeron55@gmail.com</update_contact>
<releases>
<release date="2023-12-04" version="5.8.0"/>
</releases>
</component>

@ -142,10 +142,10 @@ perform_release() {
local release_version=$1 local release_version=$1
RELEASE_DATE=$(date +%Y-%m-%d) RELEASE_DATE=$(date +%Y-%m-%d)
sed -i '/\<release/s/\(version\)="[^"]*"/\1="'"$release_version"'"/' misc/net.minetest.minetest.appdata.xml sed -i '/\<release/s/\(version\)="[^"]*"/\1="'"$release_version"'"/' misc/net.minetest.minetest.metainfo.xml
sed -i 's/\(<release date\)="[^"]*"/\1="'"$RELEASE_DATE"'"/' misc/net.minetest.minetest.appdata.xml sed -i 's/\(<release date\)="[^"]*"/\1="'"$RELEASE_DATE"'"/' misc/net.minetest.minetest.metainfo.xml
git add -f misc/net.minetest.minetest.appdata.xml git add -f misc/net.minetest.minetest.metainfo.xml
git commit -m "Bump version to $release_version" git commit -m "Bump version to $release_version"