diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/linux/flatpak/fr.handbrake.ghb.Plugin.IntelMediaSDK.json (renamed from pkg/linux/flatpak/fr.handbrake.plugin.IntelMediaSDK.json) | 26 | ||||
-rw-r--r-- | pkg/linux/flatpak/fr.handbrake.ghb.Plugin.IntelMediaSDK.metainfo.xml | 18 | ||||
-rw-r--r-- | pkg/linux/flatpak/fr.handbrake.ghb.json | 2 | ||||
-rw-r--r-- | pkg/linux/module.defs | 3 | ||||
-rw-r--r-- | pkg/linux/module.rules | 1 |
5 files changed, 39 insertions, 11 deletions
diff --git a/pkg/linux/flatpak/fr.handbrake.plugin.IntelMediaSDK.json b/pkg/linux/flatpak/fr.handbrake.ghb.Plugin.IntelMediaSDK.json index d149f3b3e..bec534499 100644 --- a/pkg/linux/flatpak/fr.handbrake.plugin.IntelMediaSDK.json +++ b/pkg/linux/flatpak/fr.handbrake.ghb.Plugin.IntelMediaSDK.json @@ -1,5 +1,5 @@ { - "app-id": "fr.handbrake.plugin.IntelMediaSDK", + "app-id": "fr.handbrake.ghb.Plugin.IntelMediaSDK", "branch": "1", "runtime": "fr.handbrake.ghb", "runtime-version": "development", @@ -84,13 +84,6 @@ }, { "name": "mediasdk", - "sources": [ - { - "type": "archive", - "url": "https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-20.1.1.tar.gz", - "sha256": "44300c0f068f6d018d182455dd9c2f48db1e85fe0b38fcd60d0353bd145923dc" - } - ], "buildsystem": "cmake", "builddir": true, "config-opts": [ @@ -104,7 +97,22 @@ "build-options": { "prefix" : "/app/extensions/IntelMediaSDK", "prepend-pkg-config-path": "/app/extensions/IntelMediaSDK/lib/pkgconfig" - } + }, + "post-install": [ + "install -Dp -m 644 ${FLATPAK_BUILDER_BUILDDIR}/fr.handbrake.ghb.Plugin.IntelMediaSDK.metainfo.xml --target-directory=${FLATPAK_DEST}/share/metainfo", + "appstream-compose --basename=fr.handbrake.ghb.Plugin.IntelMediaSDK --prefix=${FLATPAK_DEST} --origin=flatpak fr.handbrake.ghb.Plugin.IntelMediaSDK" + ], + "sources": [ + { + "type": "archive", + "url": "https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-20.1.1.tar.gz", + "sha256": "44300c0f068f6d018d182455dd9c2f48db1e85fe0b38fcd60d0353bd145923dc" + }, + { + "type": "file", + "path": "fr.handbrake.ghb.Plugin.IntelMediaSDK.metainfo.xml" + } + ] } ] } diff --git a/pkg/linux/flatpak/fr.handbrake.ghb.Plugin.IntelMediaSDK.metainfo.xml b/pkg/linux/flatpak/fr.handbrake.ghb.Plugin.IntelMediaSDK.metainfo.xml new file mode 100644 index 000000000..45fe2b3a0 --- /dev/null +++ b/pkg/linux/flatpak/fr.handbrake.ghb.Plugin.IntelMediaSDK.metainfo.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component type="addon"> + <id>fr.handbrake.ghb.Plugin.IntelMediaSDK</id> + <extends>fr.handbrake.ghb</extends> + <name>IntelMediaSDK plugin for HandBrake</name> + <summary>Provides Intel QSV encoding options.</summary> + <description> + <p> + QSV uses dedicated media processing features embedded in Intel graphics + hardware to accelerate encoding of video. Encoder codecs supported + by HandBrake are h.264 (8 bit) and h.265 (8 and 10 bit). + </p> +</description> + <url type="homepage">https://github.com/Intel-Media-SDK/MediaSDK</url> + <metadata_license>CC0-1.0</metadata_license> + <project_license>MIT</project_license> + <developer_name>Intel</developer_name> +</component> diff --git a/pkg/linux/flatpak/fr.handbrake.ghb.json b/pkg/linux/flatpak/fr.handbrake.ghb.json index d7ddfbc21..aaa1b4abc 100644 --- a/pkg/linux/flatpak/fr.handbrake.ghb.json +++ b/pkg/linux/flatpak/fr.handbrake.ghb.json @@ -21,7 +21,7 @@ "--env=GIO_EXTRA_MODULES=/app/lib/gio/modules" ], "add-extensions": { - "fr.handbrake.plugin": { + "fr.handbrake.ghb.Plugin": { "version": "1", "directory": "extensions", "add-ld-path": "lib", diff --git a/pkg/linux/module.defs b/pkg/linux/module.defs index a44d89662..c662e4ace 100644 --- a/pkg/linux/module.defs +++ b/pkg/linux/module.defs @@ -99,8 +99,9 @@ PKG.cli.manifest.flatpak = $(STAGE.out.flatpak/)$(PKG.cli.name.flatpak).json PKG.cli.build.flatpak = $(STAGE.out.flatpak/)$(PKG.cli.name.flatpak)-$(HB.version)-$(HOST.machine).build PKG.cli.flatpak = $(PKG.out.flatpak/)$(PKG.cli.name.flatpak)-$(HB.version)-$(HOST.machine).flatpak -PKG.mediasdk.name.flatpak = fr.handbrake.plugin.IntelMediaSDK +PKG.mediasdk.name.flatpak = fr.handbrake.ghb.Plugin.IntelMediaSDK PKG.mediasdk.manifest.flathub = $(PKG.out.flatpak/)$(PKG.mediasdk.name.flatpak).json +PKG.mediasdk.metainfo.flatpak = $(PKG.flatpak/)$(PKG.mediasdk.name.flatpak).metainfo.xml PKG.mediasdk.template.flatpak = $(PKG.flatpak/)$(PKG.mediasdk.name.flatpak).json PKG.mediasdk.manifest.flatpak = $(STAGE.out.flatpak/)$(PKG.mediasdk.name.flatpak).json PKG.mediasdk.build.flatpak = $(STAGE.out.flatpak/)$(PKG.mediasdk.name.flatpak)-$(HB.version)-$(HOST.machine).build diff --git a/pkg/linux/module.rules b/pkg/linux/module.rules index 763e6f5a0..a7133035b 100644 --- a/pkg/linux/module.rules +++ b/pkg/linux/module.rules @@ -91,6 +91,7 @@ $(PKG.mediasdk.flatpak): GNUmakefile $(PKG.mediasdk.template.flatpak) $(PKG.gui. $(SRC/)scripts/create_flatpak_manifest.py -p -r $(PKG.branch.flatpak) -t $(PKG.mediasdk.template.flatpak) $(PKG.mediasdk.manifest.flatpak) -flatpak --user remove --noninteractive $(PKG.gui.name.flatpak)//$(PKG.branch.flatpak) flatpak --user install --noninteractive $(PKG.gui.flatpak) + $(CP.exe) $(PKG.mediasdk.metainfo.flatpak) $(STAGE.out.flatpak/) flatpak-builder --default-branch=$(PKG.branch.flatpak) --disable-cache --force-clean $(PGPSIGN) --repo=$(PKG.repo.flatpak) $(PKG.mediasdk.build.flatpak) $(PKG.mediasdk.manifest.flatpak) flatpak build-bundle --runtime $(PKG.repo.flatpak) $(PKG.mediasdk.flatpak) $(PKG.mediasdk.name.flatpak) $(PKG.plugin.version.flatpak) --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo -flatpak --user remove --noninteractive $(PKG.gui.name.flatpak)//$(PKG.branch.flatpak) |