From cf9bcc607369ffccca49e2e2ee345eaf2fd09d51 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Tue, 5 Jun 2018 08:50:03 -0700 Subject: [PATCH] CLI: add flatpak manifest (cherry picked from commit de0f25816c7e6e04e1e5e4cfea9a0da75eff3822) --- test/fr.handbrake.HandBrakeCLI.appdata.xml | 64 ++++++++++++++++++++++ test/module.defs | 7 +++ test/module.rules | 6 ++ 3 files changed, 77 insertions(+) create mode 100644 test/fr.handbrake.HandBrakeCLI.appdata.xml 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 @@ + + + + fr.handbrake.HandBrakeCLI + CC0 + GPL-2.0+ + HandBrakeCLI + Video Transcoder + + +

+ HandBrake is a tool for converting video from nearly any format to a + selection of modern, widely supported codecs. +

+

Reasons you'll love Handbrake:

+
    +
  • Convert video from nearly any format
  • +
  • Free and Open Source
  • +
  • Multi-Platform (Windows, Mac and Linux)
  • +
+
+ + https://handbrake.fr/ + https://handbrake.fr/docs/ + https://github.com/HandBrake/HandBrake/issues + + application/ogg + application/x-extension-mp4 + application/x-flac + application/x-matroska + application/x-ogg + audio/ac3 + audio/mp4 + audio/mpeg + audio/ogg + audio/x-flac + audio/x-matroska + audio/x-mp3 + audio/x-mpeg + audio/x-vorbis + video/mp4 + video/mp4v-es + video/mpeg + video/msvideo + video/quicktime + video/vnd.divx + video/x-avi + video/x-m4v + video/x-matroska + video/x-mpeg + video/ogg + video/x-ogm+ogg + video/x-theora+ogg + x-content/video-dvd + x-content/video-vcd + x-content/video-svcd + + + + HandBrakeCLI + + +
+ diff --git a/test/module.defs b/test/module.defs index 2015bc212..4ba410156 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 5dd638815..8e2940911 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) -- 2.40.0