]> granicus.if.org Git - handbrake/commitdiff
CLI: add flatpak manifest
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 5 Jun 2018 15:50:03 +0000 (08:50 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 5 Jun 2018 16:35:27 +0000 (09:35 -0700)
test/fr.handbrake.HandBrakeCLI.appdata.xml [new file with mode: 0644]
test/module.defs
test/module.rules

diff --git a/test/fr.handbrake.HandBrakeCLI.appdata.xml b/test/fr.handbrake.HandBrakeCLI.appdata.xml
new file mode 100644 (file)
index 0000000..2095809
--- /dev/null
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2018 John Stebbins <your@email.com> -->
+<component type="console-application">
+  <id>fr.handbrake.HandBrakeCLI</id>
+  <metadata_license>CC0</metadata_license>
+  <project_license>GPL-2.0+</project_license>
+  <name>HandBrakeCLI</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>
+  <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-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>
+
+  <provides>
+    <binary>HandBrakeCLI</binary>
+  </provides>
+
+</component>
+
index f8c38238615d74e9ba8e852ab4a4a155a7418117..11a4d3383c152cc670e15391c91dbdb3acd5d2d0 100644 (file)
@@ -41,6 +41,10 @@ endif
 TEST.GCC.l += $(foreach m,$(MODULES.NAMES),$($m.OSL.libs))
 
 TEST.install.exe = $(DESTDIR)$(PREFIX/)bin/$(notdir $(TEST.exe))
+ifeq (1,$(FEATURE.flatpak))
+    TEST.appdata   = $(TEST.src/)fr.handbrake.HandBrakeCLI.appdata.xml
+    TEST.install.appdata = $(DESTDIR)$(PREFIX/)share/appdata/$(notdir $(TEST.appdata))
+endif
 
 ###############################################################################
 
@@ -49,6 +53,9 @@ TEST.out += $(TEST.exe)
 
 BUILD.out += $(TEST.out)
 BUILD.out += $(TEST.install.exe)
+ifeq (1,$(FEATURE.flatpak))
+    BUILD.out += $(TEST.install.appdata)
+endif
 
 ###############################################################################
 
index d9bd8434b1abc1f3d4bad0abc1cec82f85dbab51..6791350746cca1c585bb62013f6af1376e4eafb8 100644 (file)
@@ -16,8 +16,14 @@ test.install-strip: | $(dir $(TEST.install.exe))
        $(CP.exe) $(TEST.exe) $(TEST.install.exe)
        $(STRIP.exe) $(TEST.install.exe)
 
+ifeq (1,$(FEATURE.flatpak))
+test.install: | $(dir $(TEST.install.appdata))
+endif
 test.install: | $(dir $(TEST.install.exe))
        $(CP.exe) $(TEST.exe) $(TEST.install.exe)
+ifeq (1,$(FEATURE.flatpak))
+       $(CP.exe) $(TEST.appdata) $(TEST.install.appdata)
+endif
 
 test.uninstall:
        $(RM.exe) -f $(TEST.install.exe)