Fix orbutils recipe

This commit is contained in:
Jeremy Soller 2022-12-05 08:30:35 -07:00
parent 0e06e402a2
commit 4af48ae566
No known key found for this signature in database
GPG Key ID: 87F211AF2BE4C2FE
2 changed files with 14 additions and 1 deletions

10
recipes/book/recipe.toml Normal file
View File

@ -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}"
"""

View File

@ -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
"""