From 4af48ae5669c7c83a627ef182a31c089904195ee Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Mon, 5 Dec 2022 08:30:35 -0700
Subject: [PATCH] Fix orbutils recipe

---
 recipes/book/recipe.toml     | 10 ++++++++++
 recipes/orbutils/recipe.toml |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 recipes/book/recipe.toml

diff --git a/recipes/book/recipe.toml b/recipes/book/recipe.toml
new file mode 100644
index 000000000..300f96de8
--- /dev/null
+++ b/recipes/book/recipe.toml
@@ -0,0 +1,10 @@
+[source]
+git = "https://gitlab.redox-os.org/redox-os/book.git"
+
+[build]
+template = "custom"
+script = """
+dir="${COOKBOOK_STAGE}/share/book"
+mkdir -pv "${dir}"
+mdbook build --dest-dir "${dir}" "${COOKBOOK_SOURCE}"
+"""
diff --git a/recipes/orbutils/recipe.toml b/recipes/orbutils/recipe.toml
index daa18cce9..684b88143 100644
--- a/recipes/orbutils/recipe.toml
+++ b/recipes/orbutils/recipe.toml
@@ -1,19 +1,22 @@
 [source]
 git = "https://gitlab.redox-os.org/redox-os/orbutils.git"
+branch = "slint_port/calculator"
 
 [build]
 template = "custom"
 script = """
 COOKBOOK_CARGO_FLAGS=(
-    --path "${COOKBOOK_SOURCE}/src"
+    --path "${COOKBOOK_SOURCE}/orbutils"
     --root "${COOKBOOK_STAGE}/ui"
     --locked
+    --no-track
 )
 cookbook_cargo
 COOKBOOK_CARGO_FLAGS=(
     --path "${COOKBOOK_SOURCE}/calculator"
     --root "${COOKBOOK_STAGE}/ui"
     --locked
+    --no-track
 )
 cookbook_cargo
 """
-- 
GitLab