From 835c535afb342b5e0c7444adef073a2d22b4548d Mon Sep 17 00:00:00 2001
From: Ribbon <ribbon_45@proton.me>
Date: Sun, 30 Jun 2024 06:05:49 +0000
Subject: [PATCH] Add recipes

---
 .../libs/audio/libopenshot-audio/recipe.toml  |  7 +++++++
 .../libs/video/libopenshot-video/recipe.toml  | 19 +++++++++++++++++++
 .../wip/video/editors/openshot/recipe.toml    | 11 +++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 recipes/wip/libs/audio/libopenshot-audio/recipe.toml
 create mode 100644 recipes/wip/libs/video/libopenshot-video/recipe.toml
 create mode 100644 recipes/wip/video/editors/openshot/recipe.toml

diff --git a/recipes/wip/libs/audio/libopenshot-audio/recipe.toml b/recipes/wip/libs/audio/libopenshot-audio/recipe.toml
new file mode 100644
index 000000000..8c8221787
--- /dev/null
+++ b/recipes/wip/libs/audio/libopenshot-audio/recipe.toml
@@ -0,0 +1,7 @@
+#TODO missing script for CMake
+#TODO determine dependencies
+[source]
+git = "https://github.com/OpenShot/libopenshot-audio"
+rev = "98f08a6d4a90f3644b6c2c68efb2cbd86c75d87a"
+[build]
+template = "custom"
diff --git a/recipes/wip/libs/video/libopenshot-video/recipe.toml b/recipes/wip/libs/video/libopenshot-video/recipe.toml
new file mode 100644
index 000000000..a16d42220
--- /dev/null
+++ b/recipes/wip/libs/video/libopenshot-video/recipe.toml
@@ -0,0 +1,19 @@
+#TODO missing script for CMake
+#TODO determine dependencies - https://github.com/OpenShot/libopenshot/wiki/Linux-Build-Instructions
+[source]
+git = "https://github.com/OpenShot/libopenshot"
+rev = "3170768e0ccbaad5b2a4696e84dd649738ec1a1b"
+[build]
+template = "custom"
+dependencies = [
+    "libopenshot-audio",
+    "ffmpeg6",
+    "qt5-base",
+    "qt5-svg",
+    "qt5-multimedia",
+    "libzmq",
+    "opencv4",
+    "protobuf",
+    "babl",
+    "imagemagick",
+]
diff --git a/recipes/wip/video/editors/openshot/recipe.toml b/recipes/wip/video/editors/openshot/recipe.toml
new file mode 100644
index 000000000..63a9def40
--- /dev/null
+++ b/recipes/wip/video/editors/openshot/recipe.toml
@@ -0,0 +1,11 @@
+#TODO require a custom script to move the final openshot folder to /usr/share
+#TODO create a program shortcut to the src/launch.py file, see https://github.com/OpenShot/openshot-qt#launch
+[source]
+git = "https://github.com/OpenShot/openshot-qt"
+rev = "47e8755c71390ba862cfcfdfe9ae109f31718867"
+[build]
+template = "custom"
+dependencies = [
+    "libopenshot-video",
+    "libopenshot-audio",
+]
-- 
GitLab