From e31eb523079ff2ac71d0d1b30e4937d0928de0ff Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Thu, 2 May 2024 12:28:59 -0600
Subject: [PATCH] orbutils: Move launcher to its own folder

---
 recipes/gui/orbutils/recipe.toml | 26 +++++++++-----------------
 1 file changed, 9 insertions(+), 17 deletions(-)

diff --git a/recipes/gui/orbutils/recipe.toml b/recipes/gui/orbutils/recipe.toml
index 520c7f6a3..89871fb1e 100644
--- a/recipes/gui/orbutils/recipe.toml
+++ b/recipes/gui/orbutils/recipe.toml
@@ -4,24 +4,16 @@ git = "https://gitlab.redox-os.org/redox-os/orbutils.git"
 [build]
 template = "custom"
 script = """
-ORIGINAL_SOURCE="${COOKBOOK_SOURCE}"
-
 mkdir -pv "${COOKBOOK_STAGE}/ui"
 cp -rv "${COOKBOOK_SOURCE}/apps" "${COOKBOOK_STAGE}/ui/apps"
 
-COOKBOOK_SOURCE="${ORIGINAL_SOURCE}/orbutils"
-"${COOKBOOK_CARGO}" install \
-        --path "${COOKBOOK_SOURCE}" \
-        --root "${COOKBOOK_STAGE}/usr" \
-        --locked \
-        --no-track \
-        ${install_flags}
-
-COOKBOOK_SOURCE="${ORIGINAL_SOURCE}/calculator"
-"${COOKBOOK_CARGO}" install \
-        --path "${COOKBOOK_SOURCE}" \
-        --root "${COOKBOOK_STAGE}/usr" \
-        --locked \
-        --no-track \
-        ${install_flags}
+for project in orbutils calculator launcher
+do
+    "${COOKBOOK_CARGO}" install \
+            --path "${COOKBOOK_SOURCE}/${project}" \
+            --root "${COOKBOOK_STAGE}/usr" \
+            --locked \
+            --no-track \
+            ${install_flags}
+done
 """
-- 
GitLab