summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2018-06-05 08:50:03 -0700
committerJohn Stebbins <[email protected]>2018-06-05 09:35:27 -0700
commitde0f25816c7e6e04e1e5e4cfea9a0da75eff3822 (patch)
tree6e364bc050bd913be50b5ad1b9e6dbeab7695e5f /test
parentdd4017b3f8651c945585f0e1553d2195795048ca (diff)
CLI: add flatpak manifest
Diffstat (limited to 'test')
-rw-r--r--test/fr.handbrake.HandBrakeCLI.appdata.xml64
-rw-r--r--test/module.defs7
-rw-r--r--test/module.rules6
3 files changed, 77 insertions, 0 deletions
diff --git a/test/fr.handbrake.HandBrakeCLI.appdata.xml b/test/fr.handbrake.HandBrakeCLI.appdata.xml
new file mode 100644
index 000000000..2095809ab
--- /dev/null
+++ b/test/fr.handbrake.HandBrakeCLI.appdata.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2018 John Stebbins <[email protected]> -->
+<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>
+
diff --git a/test/module.defs b/test/module.defs
index f8c382386..11a4d3383 100644
--- a/test/module.defs
+++ b/test/module.defs
@@ -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
###############################################################################
diff --git a/test/module.rules b/test/module.rules
index d9bd8434b..679135074 100644
--- a/test/module.rules
+++ b/test/module.rules
@@ -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)