From 4fadc46201f50715d744e179d7cb9988df938699 Mon Sep 17 00:00:00 2001 From: AsciiWolf Date: Sun, 4 Aug 2024 22:54:44 +0200 Subject: [PATCH] Modernize the AppStream metadata - Update description - Add missing name and summary tags - Switch to a rDNS app id format that is now required - Various fixes to make the file adhere to modern standards --- src/Makefile | 1 + .../net.redeclipse.RedEclipse.metainfo.xml.am | 50 ++++++++++++++ src/install/nix/redeclipse.appdata.xml.am | 69 ------------------- src/system-install.mk | 11 +-- 4 files changed, 58 insertions(+), 73 deletions(-) create mode 100644 src/install/nix/net.redeclipse.RedEclipse.metainfo.xml.am delete mode 100644 src/install/nix/redeclipse.appdata.xml.am diff --git a/src/Makefile b/src/Makefile index 8015ef96e..5987165bf 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,5 @@ APPNAME = redeclipse +APPIDNAME = net.redeclipse.RedEclipse APPCLIENT = $(APPNAME) APPSERVER = $(APPNAME)_server diff --git a/src/install/nix/net.redeclipse.RedEclipse.metainfo.xml.am b/src/install/nix/net.redeclipse.RedEclipse.metainfo.xml.am new file mode 100644 index 000000000..1aaa56c9b --- /dev/null +++ b/src/install/nix/net.redeclipse.RedEclipse.metainfo.xml.am @@ -0,0 +1,50 @@ + + + @APPIDNAME@ + @APPNAME@.desktop + + @APPNAME@ + + CC-BY-SA-3.0+ + Zlib and CC-BY-SA-3.0+ + Red Eclipse + Red Eclipse Team + First-person shooter with agile gameplay and built-in editor + +

+ Red Eclipse is a fun-filled new take on the first person arena shooter, + based on the Tesseract game engine, which lends itself toward a balanced + gameplay, with a general theme of agility in a variety of environments. +

+
    +
  • Cross-platform multiplayer
  • +
  • Features parkour, impulse boosts, dashing, and other tricks
  • +
  • Favourite gamemodes with an array of mutators and variables
  • +
  • Builtin editor lets you create your own maps cooperatively online
  • +
+
+ https://redeclipse.net/ + https://github.com/redeclipse/base/issues + https://redeclipse.net/donate + https://redeclipse.net/faq + + + https://redeclipse.net/bits/images/053.jpg + Posing with fire on the map venus + + + https://redeclipse.net/bits/images/045.jpg + Mine fireworks on the map vault + + + https://redeclipse.net/bits/images/019.jpg + Overlooking friendly fire on the map cutec + + + https://redeclipse.net/forum/ + + moderate + mild + intense + +
diff --git a/src/install/nix/redeclipse.appdata.xml.am b/src/install/nix/redeclipse.appdata.xml.am deleted file mode 100644 index 135a91282..000000000 --- a/src/install/nix/redeclipse.appdata.xml.am +++ /dev/null @@ -1,69 +0,0 @@ - - - @APPNAME@.desktop - CC-BY-SA-3.0+ - Zlib and CC-BY-SA-3.0+ - -

- Red Eclipse is a fun-filled new take on the first person arena shooter, - built as a total conversion of Cube Engine 2, which lends itself toward - a balanced gameplay, with a general theme of agility in a variety of - environments. -

-
    -
  • Cross-platform multiplayer
  • -
  • Features parkour, impulse boosts, dashing, and other tricks
  • -
  • Favourite gamemodes with an array of mutators and variables
  • -
  • Builtin editor lets you create your own maps cooperatively online
  • -
-
- https://redeclipse.net/ - - - https://redeclipse.net/bits/images/053.jpg - Posing with fire on the map venus - - - https://redeclipse.net/bits/images/045.jpg - Mine fireworks on the map vault - - - https://redeclipse.net/bits/images/019.jpg - Overlooking friendly fire on the map cutec - - - https://redeclipse.net/forum/ - - none - moderate - none - mild - none - none - none - none - none - none - none - none - none - none - none - none - none - none - none - none - intense - none - none - none - none - none - none - - Red Eclipse Team - https://github.com/redeclipse/base/issues - https://redeclipse.net/donate - https://redeclipse.net/faq -
diff --git a/src/system-install.mk b/src/system-install.mk index ad2546de8..7248bfee0 100644 --- a/src/system-install.mk +++ b/src/system-install.mk @@ -1,6 +1,8 @@ appname=$(APPNAME) +appidname=$(APPIDNAME) appnamefull=$(shell sed -n 's/.define VERSION_NAME *"\([^"]*\)"/\1/p' version.h) appsrcname=$(APPNAME) +appidsrcname=$(APPIDNAME) cappname=$(shell echo $(appname) | tr '[:lower:]' '[:upper:]')# Captial appname appclient=$(APPCLIENT)$(APPMODIFIER)$(BIN_SUFFIX) appserver=$(APPSERVER)$(APPMODIFIER)$(BIN_SUFFIX) @@ -17,7 +19,7 @@ mandir=$(DESTDIR)$(prefix)/share/man menudir=$(DESTDIR)$(prefix)/share/applications icondir=$(DESTDIR)$(prefix)/share/icons/hicolor pixmapdir=$(DESTDIR)$(prefix)/share/pixmaps -appdatadir=$(DESTDIR)$(prefix)/share/appdata +appdatadir=$(DESTDIR)$(prefix)/share/metainfo ICONS= \ install/nix/$(appsrcname)_x16.png \ @@ -149,8 +151,9 @@ system-install-menus: icons -e 's,@DATADIR@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \ -e 's,@DOCDIR@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \ -e 's,@APPNAME@,$(appname),g' \ - install/nix/$(appsrcname).appdata.xml.am > \ - $(appdatadir)/$(appname).appdata.xml + -e 's,@APPIDNAME@,$(appidname),g' \ + install/nix/$(appidsrcname).metainfo.xml.am > \ + $(appdatadir)/$(appidname).metainfo.xml install -m644 install/nix/$(appsrcname)_x16.png \ $(icondir)/16x16/apps/$(appname).png install -m644 install/nix/$(appsrcname)_x32.png \ @@ -201,7 +204,7 @@ system-uninstall-docs: system-uninstall-menus: @rm -fv $(menudir)/$(appname).desktop - @rm -fv $(appdatadir)/$(appname).appdata.xml + @rm -fv $(appdatadir)/$(appidname).metainfo.xml @rm -fv $(icondir)/16x16/apps/$(appname).png @rm -fv $(icondir)/32x32/apps/$(appname).png @rm -fv $(icondir)/48x48/apps/$(appname).png