From 9ec87c1b589799418383590bfadf56c45c2494ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 9 Mar 2022 18:01:39 +0100 Subject: [PATCH] flatpak-nightly: Build dav1d decoder from gst-plugins-rs --- .../com.github.rafostar.Clapper-nightly.json | 9 ++++++++ pkgs/flatpak/testing/gst-plugins-rs.json | 23 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/flatpak/testing/gst-plugins-rs.json diff --git a/pkgs/flatpak/com.github.rafostar.Clapper-nightly.json b/pkgs/flatpak/com.github.rafostar.Clapper-nightly.json index 6d754f19..5134b73f 100644 --- a/pkgs/flatpak/com.github.rafostar.Clapper-nightly.json +++ b/pkgs/flatpak/com.github.rafostar.Clapper-nightly.json @@ -3,6 +3,10 @@ "runtime": "org.gnome.Platform", "runtime-version": "master", "sdk": "org.gnome.Sdk", + "sdk-extensions": [ + "org.freedesktop.Sdk.Extension.rust-nightly", + "org.freedesktop.Sdk.Extension.llvm13" + ], "command": "com.github.rafostar.Clapper", "finish-args": [ "--share=ipc", @@ -19,6 +23,10 @@ "--env=GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0", "--env=GST_VAAPI_ALL_DRIVERS=1" ], + "build-options": { + "append-path": "/usr/lib/sdk/rust-nightly/bin:/usr/lib/sdk/llvm13/bin", + "prepend-ld-library-path": "/usr/lib/sdk/llvm13/lib" + }, "modules": [ "flathub/shared-modules/gudev/gudev.json", "flathub/lib/libsass.json", @@ -34,6 +42,7 @@ "flathub/lib/ffmpeg.json", "testing/libsoup3.json", "testing/gstreamer.json", + "testing/gst-plugins-rs.json", "testing/gtuber.json", { "name": "clapper", diff --git a/pkgs/flatpak/testing/gst-plugins-rs.json b/pkgs/flatpak/testing/gst-plugins-rs.json new file mode 100644 index 00000000..d4430b51 --- /dev/null +++ b/pkgs/flatpak/testing/gst-plugins-rs.json @@ -0,0 +1,23 @@ +{ + "name": "gst-plugins-rs", + "buildsystem": "simple", + "build-options": { + "build-args": [ + "--share=network" + ], + "env": { + "CARGO_HOME": "/run/build/gst-plugins-rs/cargo" + } + }, + "sources": [ + { + "type": "git", + "url": "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git", + "branch": "main" + } + ], + "build-commands": [ + "cargo install cargo-c", + "cargo cinstall --prefix=/app -p gst-plugin-dav1d" + ] +}