From 4fa15ba593c404be87a25ee3563129a06be25ddd Mon Sep 17 00:00:00 2001
From: Ribbon <ribbon_45@proton.me>
Date: Mon, 1 Jul 2024 05:13:52 +0000
Subject: [PATCH] Fix a recipe

---
 recipes/wip/web/gosub/recipe.toml | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/recipes/wip/web/gosub/recipe.toml b/recipes/wip/web/gosub/recipe.toml
index 137d23df6..1892bbf9e 100644
--- a/recipes/wip/web/gosub/recipe.toml
+++ b/recipes/wip/web/gosub/recipe.toml
@@ -1,9 +1,16 @@
-#TODO discover how to build the bins
+#TODO not compiled or tested
 [source]
 git = "https://github.com/gosub-browser/gosub-engine"
 [build]
 template = "custom"
 script = """
-cookbook_cargo --bin gosub-parser css3-parser renderer \
-style-parser
+binary=renderer
+"${COOKBOOK_CARGO}" build \
+            --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
+            --bin "${binary}" \
+            --release
+        mkdir -pv "${COOKBOOK_STAGE}/usr/bin"
+        cp -v \
+            "target/${TARGET}/release/${binary}" \
+            "${COOKBOOK_STAGE}/usr/bin/${binary}"
 """
-- 
GitLab