File HandBrake-metainfo.patch of Package handbrake

diff -uNr HandBrake-1.5.1/gtk/src/fr.handbrake.ghb.appdata.template.xml HandBrake-new/gtk/src/fr.handbrake.ghb.appdata.template.xml
--- HandBrake-1.5.1/gtk/src/fr.handbrake.ghb.appdata.template.xml	1970-01-01 01:00:00.000000000 +0100
+++ HandBrake-new/gtk/src/fr.handbrake.ghb.appdata.template.xml	2022-01-10 20:11:37.000000000 +0100
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2018-2022 John Stebbins <your@email.com> -->
+<component type="desktop-application">
+  <id>fr.handbrake.ghb</id>
+  <translation>ghb</translation>
+  <update_contact>jstebbins.hb_AT_gmail.com</update_contact>
+  <launchable type="desktop-id">fr.handbrake.ghb.desktop</launchable>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-2.0+</project_license>
+  <name>HandBrake</name>
+  <summary>Video Transcoder</summary>
+
+  <description>
+    <p>HandBrake is a tool for converting video from nearly any format to a selection of modern, widely supported codecs.</p>
+    <p>Reasons you'll love Handbrake:</p>
+    <ul>
+      <li>Convert video from nearly any format</li>
+      <li>Free and Open Source</li>
+      <li>Multi-Platform (Windows, Mac and Linux)</li>
+    </ul>
+  </description>
+
+  <url type="homepage">https://handbrake.fr/</url>
+  <url type="help">https://handbrake.fr/docs/</url>
+  <url type="bugtracker">https://github.com/HandBrake/HandBrake/issues</url>
+  <url type="translate">https://www.transifex.com/HandBrakeProject/</url>
+  <mimetypes>
+    <mimetype>application/ogg</mimetype>
+    <mimetype>application/x-extension-mp4</mimetype>
+    <mimetype>application/x-flac</mimetype>
+    <mimetype>application/x-matroska</mimetype>
+    <mimetype>application/x-ogg</mimetype>
+    <mimetype>audio/ac3</mimetype>
+    <mimetype>audio/mp4</mimetype>
+    <mimetype>audio/mpeg</mimetype>
+    <mimetype>audio/ogg</mimetype>
+    <mimetype>audio/x-flac</mimetype>
+    <mimetype>audio/x-matroska</mimetype>
+    <mimetype>audio/x-mp2</mimetype>
+    <mimetype>audio/x-mp3</mimetype>
+    <mimetype>audio/x-mpeg</mimetype>
+    <mimetype>audio/x-vorbis</mimetype>
+    <mimetype>video/mp4</mimetype>
+    <mimetype>video/mp4v-es</mimetype>
+    <mimetype>video/mpeg</mimetype>
+    <mimetype>video/msvideo</mimetype>
+    <mimetype>video/quicktime</mimetype>
+    <mimetype>video/vnd.divx</mimetype>
+    <mimetype>video/x-avi</mimetype>
+    <mimetype>video/x-m4v</mimetype>
+    <mimetype>video/x-matroska</mimetype>
+    <mimetype>video/x-mpeg</mimetype>
+    <mimetype>video/ogg</mimetype>
+    <mimetype>video/x-ogm+ogg</mimetype>
+    <mimetype>video/x-theora+ogg</mimetype>
+    <mimetype>x-content/video-dvd</mimetype>
+    <mimetype>x-content/video-vcd</mimetype>
+    <mimetype>x-content/video-svcd</mimetype>
+  </mimetypes>
+
+  <screenshots>
+    <screenshot type="default">
+      <image>https://download.handbrake.fr/handbrake/images/HandBrake_1.1.x_Summary_linux.png</image>
+      <caption>Main window and settings summary</caption>
+    </screenshot>
+    <screenshot>
+      <image>https://download.handbrake.fr/handbrake/images/HandBrake_1.1.x_Dimensions_linux.png</image>
+      <caption>Video resolution and cropping settings</caption>
+    </screenshot>
+    <screenshot>
+      <image>https://download.handbrake.fr/handbrake/images/HandBrake_1.1.x_Video_linux.png</image>
+      <caption>Video encoder settings</caption>
+    </screenshot>
+    <screenshot>
+      <image>https://download.handbrake.fr/handbrake/images/HandBrake_1.1.x_Audio_linux.png</image>
+      <caption>Audio track selection and settings</caption>
+    </screenshot>
+    <screenshot>
+      <image>https://download.handbrake.fr/handbrake/images/HandBrake_1.1.x_Chapters_linux.png</image>
+      <caption>Chapter title editing</caption>
+    </screenshot>
+  </screenshots>
+
+  <provides>
+    <binary>ghb</binary>
+  </provides>
+
+  <releases>
+    RELEASE_TAG
+  </releases>
+  
+  <content_rating type="oars-1.1">
+    <content_attribute id="violence-cartoon">none</content_attribute>
+    <content_attribute id="violence-fantasy">none</content_attribute>
+    <content_attribute id="violence-realistic">none</content_attribute>
+    <content_attribute id="violence-bloodshed">none</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">none</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>
+  
+</component>
+
diff -uNr HandBrake-1.5.1/gtk/src/fr.handbrake.ghb.metainfo.template.xml HandBrake-new/gtk/src/fr.handbrake.ghb.metainfo.template.xml
--- HandBrake-1.5.1/gtk/src/fr.handbrake.ghb.metainfo.template.xml	2022-01-10 20:11:37.000000000 +0100
+++ HandBrake-new/gtk/src/fr.handbrake.ghb.metainfo.template.xml	1970-01-01 01:00:00.000000000 +0100
@@ -1,123 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright 2018-2022 John Stebbins <your@email.com> -->
-<component type="desktop-application">
-  <id>fr.handbrake.ghb</id>
-  <translation>ghb</translation>
-  <update_contact>jstebbins.hb_AT_gmail.com</update_contact>
-  <launchable type="desktop-id">fr.handbrake.ghb.desktop</launchable>
-  <metadata_license>CC0-1.0</metadata_license>
-  <project_license>GPL-2.0+</project_license>
-  <name>HandBrake</name>
-  <summary>Video Transcoder</summary>
-
-  <description>
-    <p>HandBrake is a tool for converting video from nearly any format to a selection of modern, widely supported codecs.</p>
-    <p>Reasons you'll love Handbrake:</p>
-    <ul>
-      <li>Convert video from nearly any format</li>
-      <li>Free and Open Source</li>
-      <li>Multi-Platform (Windows, Mac and Linux)</li>
-    </ul>
-  </description>
-
-  <url type="homepage">https://handbrake.fr/</url>
-  <url type="help">https://handbrake.fr/docs/</url>
-  <url type="bugtracker">https://github.com/HandBrake/HandBrake/issues</url>
-  <url type="translate">https://www.transifex.com/HandBrakeProject/</url>
-  <mimetypes>
-    <mimetype>application/ogg</mimetype>
-    <mimetype>application/x-extension-mp4</mimetype>
-    <mimetype>application/x-flac</mimetype>
-    <mimetype>application/x-matroska</mimetype>
-    <mimetype>application/x-ogg</mimetype>
-    <mimetype>audio/ac3</mimetype>
-    <mimetype>audio/mp4</mimetype>
-    <mimetype>audio/mpeg</mimetype>
-    <mimetype>audio/ogg</mimetype>
-    <mimetype>audio/x-flac</mimetype>
-    <mimetype>audio/x-matroska</mimetype>
-    <mimetype>audio/x-mp2</mimetype>
-    <mimetype>audio/x-mp3</mimetype>
-    <mimetype>audio/x-mpeg</mimetype>
-    <mimetype>audio/x-vorbis</mimetype>
-    <mimetype>video/mp4</mimetype>
-    <mimetype>video/mp4v-es</mimetype>
-    <mimetype>video/mpeg</mimetype>
-    <mimetype>video/msvideo</mimetype>
-    <mimetype>video/quicktime</mimetype>
-    <mimetype>video/vnd.divx</mimetype>
-    <mimetype>video/x-avi</mimetype>
-    <mimetype>video/x-m4v</mimetype>
-    <mimetype>video/x-matroska</mimetype>
-    <mimetype>video/x-mpeg</mimetype>
-    <mimetype>video/ogg</mimetype>
-    <mimetype>video/x-ogm+ogg</mimetype>
-    <mimetype>video/x-theora+ogg</mimetype>
-    <mimetype>x-content/video-dvd</mimetype>
-    <mimetype>x-content/video-vcd</mimetype>
-    <mimetype>x-content/video-svcd</mimetype>
-  </mimetypes>
-
-  <screenshots>
-    <screenshot type="default">
-      <image>https://download.handbrake.fr/handbrake/images/HandBrake_1.1.x_Summary_linux.png</image>
-      <caption>Main window and settings summary</caption>
-    </screenshot>
-    <screenshot>
-      <image>https://download.handbrake.fr/handbrake/images/HandBrake_1.1.x_Dimensions_linux.png</image>
-      <caption>Video resolution and cropping settings</caption>
-    </screenshot>
-    <screenshot>
-      <image>https://download.handbrake.fr/handbrake/images/HandBrake_1.1.x_Video_linux.png</image>
-      <caption>Video encoder settings</caption>
-    </screenshot>
-    <screenshot>
-      <image>https://download.handbrake.fr/handbrake/images/HandBrake_1.1.x_Audio_linux.png</image>
-      <caption>Audio track selection and settings</caption>
-    </screenshot>
-    <screenshot>
-      <image>https://download.handbrake.fr/handbrake/images/HandBrake_1.1.x_Chapters_linux.png</image>
-      <caption>Chapter title editing</caption>
-    </screenshot>
-  </screenshots>
-
-  <provides>
-    <binary>ghb</binary>
-  </provides>
-
-  <releases>
-    RELEASE_TAG
-  </releases>
-  
-  <content_rating type="oars-1.1">
-    <content_attribute id="violence-cartoon">none</content_attribute>
-    <content_attribute id="violence-fantasy">none</content_attribute>
-    <content_attribute id="violence-realistic">none</content_attribute>
-    <content_attribute id="violence-bloodshed">none</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">none</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>
-  
-</component>
-
diff -uNr HandBrake-1.5.1/gtk/src/Makefile.am HandBrake-new/gtk/src/Makefile.am
--- HandBrake-1.5.1/gtk/src/Makefile.am	2022-01-10 20:11:37.000000000 +0100
+++ HandBrake-new/gtk/src/Makefile.am	2022-01-11 00:09:03.088899985 +0100
@@ -40,7 +40,7 @@
 hb_menu = fr.handbrake.ghb.desktop
 
 metainfodir = $(datarootdir)/metainfo
-metainfo_in_files = fr.handbrake.ghb.metainfo.xml.in
+metainfo_in_files = fr.handbrake.ghb.appdata.xml.in
 if ! MINGW
 metainfo_DATA = $(metainfo_in_files:.xml.in=.xml)
 dist_metainfo_DATA = $(metainfo_files)
@@ -175,10 +175,10 @@
 widget.deps: makedeps.py
 	$(HB_PYTHON) $(srcdir)/makedeps.py
 
-fr.handbrake.ghb.metainfo.xml: fr.handbrake.ghb.metainfo.xml.in
+fr.handbrake.ghb.appdata.xml: fr.handbrake.ghb.appdata.xml.in
 	$(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
 
-fr.handbrake.ghb.metainfo.xml.in: fr.handbrake.ghb.metainfo.template.xml
+fr.handbrake.ghb.appdata.xml.in: fr.handbrake.ghb.appdata.template.xml
 	sed -e 's^RELEASE_TAG^<release version="$(HB.version)" date="$(word 1,$(HB.repo.date))" />^' $< > $@
 
 $(srcdir)/marshalers.h: marshalers.list