shithub: choc

Download patch

ref: 35827930553ca522270bd74df37a378d6b2dea8a
parent: 12d69a4ee62094b48b37f550d31113e84cca0043
author: Mike Swanson <mikeonthecomputer@gmail.com>
date: Mon Jan 22 15:41:16 EST 2018

Update AppStream XML files to current (0.11) standards

<id> tag is changed to a Reverse-DNS form, and an accommodating
PACKAGE_RDNS is set in configure.ac to use it.

<name> and <summary> tags have been added, using existing autoconf
variable values.

The `appstream-util validate` command will complain about some
optionally-missing tags and a strict string length limit on some of
the <caption> tags.  `validate-relax` passes, and by the letter of the
AppStream specification, we should be completely valid.

--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,7 @@
 PACKAGE_LICENSE="GNU General Public License, version 2"
 PACKAGE_MAINTAINER="Simon Howard"
 PACKAGE_URL="https://www.chocolate-doom.org/"
+PACKAGE_RDNS="org.chocolate_doom"
 PACKAGE_ISSUES="https://github.com/chocolate-doom/chocolate-doom/issues"
 
 AC_CONFIG_AUX_DIR(autotools)
@@ -142,6 +143,7 @@
 AC_SUBST(PACKAGE_LICENSE)
 AC_SUBST(PACKAGE_MAINTAINER)
 AC_SUBST(PACKAGE_URL)
+AC_SUBST(PACKAGE_RDNS)
 AC_SUBST(PACKAGE_ISSUES)
 
 AC_SUBST(bashcompletiondir)
--- a/src/doom.appdata.xml.in
+++ b/src/doom.appdata.xml.in
@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <component type="desktop">
-  <id>@PROGRAM_PREFIX@doom.desktop</id>
+  <id>@PACKAGE_RDNS@.Doom</id>
+  <name>@PACKAGE_SHORTNAME@ Doom</name>
+  <summary>@PACKAGE_SHORTDESC@</summary>
   <metadata_license>CC0-1.0</metadata_license>
   <project_license>GPL-2.0+</project_license>
   <developer_name>@PACKAGE_MAINTAINER@</developer_name>
--- a/src/heretic.appdata.xml.in
+++ b/src/heretic.appdata.xml.in
@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <component type="desktop">
-  <id>@PROGRAM_PREFIX@heretic.desktop</id>
+  <id>@PACKAGE_RDNS@.Heretic</id>
+  <name>@PACKAGE_SHORTNAME@ Heretic</name>
+  <summary>@PACKAGE_SHORTDESC@</summary>
   <metadata_license>CC0-1.0</metadata_license>
   <project_license>GPL-2.0+</project_license>
   <developer_name>@PACKAGE_MAINTAINER@</developer_name>
--- a/src/hexen.appdata.xml.in
+++ b/src/hexen.appdata.xml.in
@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <component type="desktop">
-  <id>@PROGRAM_PREFIX@hexen.desktop</id>
+  <id>@PACKAGE_RDNS@.Hexen</id>
+  <name>@PACKAGE_SHORTNAME@ Hexen</name>
+  <summary>@PACKAGE_SHORTDESC@</summary>
   <metadata_license>CC0-1.0</metadata_license>
   <project_license>GPL-2.0+</project_license>
   <developer_name>@PACKAGE_MAINTAINER@</developer_name>
--- a/src/strife.appdata.xml.in
+++ b/src/strife.appdata.xml.in
@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <component type="desktop">
-  <id>@PROGRAM_PREFIX@strife.desktop</id>
+  <id>@PACKAGE_RDNS@.Strife</id>
+  <name>@PACKAGE_SHORTNAME@ Strife</name>
+  <summary>@PACKAGE_SHORTDESC@</summary>
   <metadata_license>CC0-1.0</metadata_license>
   <project_license>GPL-2.0+</project_license>
   <developer_name>@PACKAGE_MAINTAINER@</developer_name>