From ac3db0c45153e7a168d8984783b12c83a26794ff Mon Sep 17 00:00:00 2001
From: Ribbon <ribbon_45@proton.me>
Date: Sat, 26 Oct 2024 11:59:34 +0000
Subject: [PATCH] Add recipes

---
 .../game-console/nintendo/lime3ds/recipe.toml | 30 +++++++++++++++++++
 .../wip/graphics/editors/pencil2d/recipe.toml | 12 ++++++++
 recipes/wip/image/editors/xpano/recipe.toml   | 29 ++++++++++++++++++
 recipes/wip/web/zen-browser/recipe.toml       |  8 +++++
 4 files changed, 79 insertions(+)
 create mode 100644 recipes/wip/emulators/game-console/nintendo/lime3ds/recipe.toml
 create mode 100644 recipes/wip/graphics/editors/pencil2d/recipe.toml
 create mode 100644 recipes/wip/image/editors/xpano/recipe.toml
 create mode 100644 recipes/wip/web/zen-browser/recipe.toml

diff --git a/recipes/wip/emulators/game-console/nintendo/lime3ds/recipe.toml b/recipes/wip/emulators/game-console/nintendo/lime3ds/recipe.toml
new file mode 100644
index 000000000..773a72b30
--- /dev/null
+++ b/recipes/wip/emulators/game-console/nintendo/lime3ds/recipe.toml
@@ -0,0 +1,30 @@
+#TODO not compiled or tested
+# build instructions - https://github.com/Lime3DS/Lime3DS/wiki/Building-From-Source#linux
+[source]
+git = "https://github.com/Lime3DS/Lime3DS"
+[build]
+template = "custom"
+dependencies = [
+    "sdl2",
+    "qt6-base",
+    "qt6-multimedia",
+    "portaudio",
+    "libx11",
+    "libxext",
+    "pipewire",
+]
+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/graphics/editors/pencil2d/recipe.toml b/recipes/wip/graphics/editors/pencil2d/recipe.toml
new file mode 100644
index 000000000..38d91b987
--- /dev/null
+++ b/recipes/wip/graphics/editors/pencil2d/recipe.toml
@@ -0,0 +1,12 @@
+#TODO missing script for qmake and gnu make
+# build instructions - https://dev.pencil2d.org/build_linux.html
+[source]
+git = "https://github.com/pencil2d/pencil"
+branch = "release/0.7.0"
+[build]
+template = "custom"
+dependencies = [
+    "qt6-base",
+    "qt6-multimedia",
+    "qt6-svg",
+]
diff --git a/recipes/wip/image/editors/xpano/recipe.toml b/recipes/wip/image/editors/xpano/recipe.toml
new file mode 100644
index 000000000..a45f938db
--- /dev/null
+++ b/recipes/wip/image/editors/xpano/recipe.toml
@@ -0,0 +1,29 @@
+#TODO satisfy the dependencies and complete the script
+# build instructions - https://github.com/krupkat/xpano#development
+# linux script - https://github.com/krupkat/xpano/blob/main/misc/build/build-ubuntu-22.sh
+[source]
+git = "https://github.com/krupkat/xpano"
+rev = "5e626f66d2670a7f3fd04e805610ef98a506e401"
+[build]
+template = "custom"
+dependencies = [
+    "gtk3",
+    "opencv4",
+    "sdl2",
+    "libspdlog",
+]
+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/web/zen-browser/recipe.toml b/recipes/wip/web/zen-browser/recipe.toml
new file mode 100644
index 000000000..fd5d8c38d
--- /dev/null
+++ b/recipes/wip/web/zen-browser/recipe.toml
@@ -0,0 +1,8 @@
+#TODO missing script for npm
+# build instructions - https://docs.zen-browser.app/building
+#TODO analyze the dependencies
+[source]
+git = "https://github.com/zen-browser/desktop"
+branch = "stable"
+[build]
+template = "custom"
-- 
GitLab