redox/recipes/wip/dev/omnibor-rs/recipe.toml
2024-03-22 12:49:07 +00:00

18 lines
503 B
TOML

#TODO Bash error with the "--build-binary" Cargo flag
[source]
git = "https://github.com/omnibor/omnibor-rs"
[build]
template = "custom"
script = """
binary=omnibor
"${COOKBOOK_CARGO}" build \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
--bin "${binary}" \
--release
--build-binary
mkdir -pv "${COOKBOOK_STAGE}/usr/bin"
cp -v \
"target/${TARGET}/release/${binary}" \
"${COOKBOOK_STAGE}/usr/bin/${binary}"
"""