From c6912ef25c72b6e01e82b84fa93b3347c7287a11 Mon Sep 17 00:00:00 2001
From: Ribbon <ribbon_45@proton.me>
Date: Sun, 27 Oct 2024 04:16:04 +0000
Subject: [PATCH] Add recipes

---
 recipes/wip/libs/other/libspdlog/recipe.toml  | 20 ++++++++++++++++
 recipes/wip/net/remote/jupii/recipe.toml      | 23 +++++++++++++++++++
 .../gpu-screen-recorder-gtk/recipe.toml       | 14 +++++++++++
 .../recorders/gpu-screen-recorder/recipe.toml | 20 ++++++++++++++++
 recipes/wip/science/siril/recipe.toml         | 14 +++++++++++
 5 files changed, 91 insertions(+)
 create mode 100644 recipes/wip/libs/other/libspdlog/recipe.toml
 create mode 100644 recipes/wip/net/remote/jupii/recipe.toml
 create mode 100644 recipes/wip/recorders/gpu-screen-recorder-gtk/recipe.toml
 create mode 100644 recipes/wip/recorders/gpu-screen-recorder/recipe.toml
 create mode 100644 recipes/wip/science/siril/recipe.toml

diff --git a/recipes/wip/libs/other/libspdlog/recipe.toml b/recipes/wip/libs/other/libspdlog/recipe.toml
new file mode 100644
index 000000000..79400034d
--- /dev/null
+++ b/recipes/wip/libs/other/libspdlog/recipe.toml
@@ -0,0 +1,20 @@
+#TODO maybe incomplete script
+[source]
+git = "https://github.com/gabime/spdlog"
+[build]
+template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/net/remote/jupii/recipe.toml b/recipes/wip/net/remote/jupii/recipe.toml
new file mode 100644
index 000000000..9169263cd
--- /dev/null
+++ b/recipes/wip/net/remote/jupii/recipe.toml
@@ -0,0 +1,23 @@
+#TODO maybe incomplete script
+#TODO missing dependencies? - https://github.com/mkiol/Jupii#libraries
+[source]
+git = "https://github.com/mkiol/Jupii"
+rev = "ed80ca0ea29081a2bff038faf4884e3acabb14b7"
+[build]
+template = "custom"
+script = """
+COOKBOOK_CONFIGURE="cmake"
+COOKBOOK_CONFIGURE_FLAGS=(
+    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_CROSSCOMPILING=True
+    -DCMAKE_EXE_LINKER_FLAGS="-static"
+    -DCMAKE_INSTALL_PREFIX="/"
+    -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
+    -DCMAKE_SYSTEM_NAME=Generic
+    -DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
+    -DCMAKE_VERBOSE_MAKEFILE=On
+    -DWITH_DESKTOP=ON
+"${COOKBOOK_SOURCE}"
+)
+cookbook_configure
+"""
diff --git a/recipes/wip/recorders/gpu-screen-recorder-gtk/recipe.toml b/recipes/wip/recorders/gpu-screen-recorder-gtk/recipe.toml
new file mode 100644
index 000000000..c2fc5c68f
--- /dev/null
+++ b/recipes/wip/recorders/gpu-screen-recorder-gtk/recipe.toml
@@ -0,0 +1,14 @@
+#TODO not compiled or tested
+[source]
+git = "https://git.dec05eba.com/gpu-screen-recorder-gtk"
+rev = "7fb7608b720068d3c114330e8d274b04ef310cf2"
+[build]
+template = "custom"
+dependencies = [
+    "gtk3",
+    "libx11",
+]
+[package]
+dependencies = [
+    "gpu-screen-recorder",
+]
diff --git a/recipes/wip/recorders/gpu-screen-recorder/recipe.toml b/recipes/wip/recorders/gpu-screen-recorder/recipe.toml
new file mode 100644
index 000000000..7c43efed6
--- /dev/null
+++ b/recipes/wip/recorders/gpu-screen-recorder/recipe.toml
@@ -0,0 +1,20 @@
+#TODO missing script for meson
+[source]
+git = "https://git.dec05eba.com/gpu-screen-recorder"
+rev = "422f214283ba50649acca4d9b5a9778d313fe05b"
+[build]
+template = "custom"
+dependencies = [
+    "mesa",
+    "libvulkan",
+    "ffmpeg6",
+    "libx11",
+    "libxcomposite",
+    "libxrandr",
+    "libxfixes",
+    "libxdamage",
+    "pulseaudio",
+    "libva",
+    "libcap",
+    "libwayland",
+]
diff --git a/recipes/wip/science/siril/recipe.toml b/recipes/wip/science/siril/recipe.toml
new file mode 100644
index 000000000..21d6258d8
--- /dev/null
+++ b/recipes/wip/science/siril/recipe.toml
@@ -0,0 +1,14 @@
+#TODO missing cross-compilation script
+#TODO missing dependencies - https://gitlab.com/free-astro/siril#requirements
+# build instructions - https://gitlab.com/free-astro/siril#building-siril-for-gnulinux
+[source]
+tar = "https://free-astro.org/download/siril-1.2.4.tar.bz2"
+[build]
+template = "custom"
+dependencies = [
+    "glib",
+    "gtk3",
+    "liblcms",
+    "fftw",
+    "opencv4",
+]
-- 
GitLab