Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize the AppStream metadata #1575

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
APPNAME = redeclipse
APPIDNAME = net.redeclipse.RedEclipse
APPCLIENT = $(APPNAME)
APPSERVER = $(APPNAME)_server

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>@[email protected]</id>
<component type="desktop-application">
<id>@APPIDNAME@</id>
<launchable type="desktop-id">@[email protected]</launchable>
<provides>
<binary>@APPNAME@</binary>
</provides>
<metadata_license>CC-BY-SA-3.0+</metadata_license>
<project_license>Zlib and CC-BY-SA-3.0+</project_license>
<name>Red Eclipse</name>
<developer_name>Red Eclipse Team</developer_name>
<summary>First-person shooter with agile gameplay and built-in editor</summary>
<description>
<p>
Red Eclipse is a fun-filled new take on the first person arena shooter,
Expand All @@ -18,6 +25,9 @@
</ul>
</description>
<url type="homepage">https://redeclipse.net/</url>
<url type="bugtracker">https://github.com/redeclipse/base/issues</url>
<url type="donation">https://redeclipse.net/donate</url>
<url type="help">https://redeclipse.net/faq</url>
<screenshots>
<screenshot type="default">
<image>https://redeclipse.net/bits/images/053.jpg</image>
Expand All @@ -34,36 +44,8 @@
</screenshots>
<update_contact>https://redeclipse.net/forum/</update_contact>
<content_rating type="oars-1.1">
<content_attribute id="violence-cartoon">none</content_attribute>
<content_attribute id="violence-fantasy">moderate</content_attribute>
<content_attribute id="violence-realistic">none</content_attribute>
<content_attribute id="violence-bloodshed">mild</content_attribute>
<content_attribute id="violence-sexual">none</content_attribute>
<content_attribute id="violence-desecration">none</content_attribute>
<content_attribute id="violence-slavery">none</content_attribute>
<content_attribute id="violence-worship">none</content_attribute>
<content_attribute id="drugs-alcohol">none</content_attribute>
<content_attribute id="drugs-narcotics">none</content_attribute>
<content_attribute id="drugs-tobacco">none</content_attribute>
<content_attribute id="sex-nudity">none</content_attribute>
<content_attribute id="sex-themes">none</content_attribute>
<content_attribute id="sex-homosexuality">none</content_attribute>
<content_attribute id="sex-prostitution">none</content_attribute>
<content_attribute id="sex-adultery">none</content_attribute>
<content_attribute id="sex-appearance">none</content_attribute>
<content_attribute id="language-profanity">none</content_attribute>
<content_attribute id="language-humor">none</content_attribute>
<content_attribute id="language-discrimination">none</content_attribute>
<content_attribute id="social-chat">intense</content_attribute>
<content_attribute id="social-info">none</content_attribute>
<content_attribute id="social-audio">none</content_attribute>
<content_attribute id="social-location">none</content_attribute>
<content_attribute id="social-contacts">none</content_attribute>
<content_attribute id="money-purchasing">none</content_attribute>
<content_attribute id="money-gambling">none</content_attribute>
</content_rating>
<developer_name>Red Eclipse Team</developer_name>
<url type="bugtracker">https://github.com/redeclipse/base/issues</url>
<url type="donation">https://redeclipse.net/donate</url>
<url type="help">https://redeclipse.net/faq</url>
</component>
11 changes: 7 additions & 4 deletions src/system-install.mk
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Expand Down