redox/recipes/wip/tools/humphrey/recipe.toml
2024-07-09 00:06:39 +00:00

18 lines
516 B
TOML

#TODO Bash can't detect the "--all-features" flag on the script
[source]
git = "https://github.com/w-henderson/Humphrey"
[build]
template = "custom"
script = """
binary=humphrey
"${COOKBOOK_CARGO}" build \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
--bin "${binary}" \
--release
--all-features
mkdir -pv "${COOKBOOK_STAGE}/usr/bin"
cp -v \
"target/${TARGET}/release/${binary}" \
"${COOKBOOK_STAGE}/usr/bin/${binary}"
"""