From 50963550a6fb8ae8232d28e9083308c47d5dc77d Mon Sep 17 00:00:00 2001 From: Ribbon <ribbon_45@proton.me> Date: Sat, 20 Jul 2024 02:11:12 +0000 Subject: [PATCH] Add recipes --- recipes/wip/demos/cubecl/recipe.toml | 18 ++++++++++++++++++ recipes/wip/sound/piano-rs/recipe.toml | 10 ++++++++++ 2 files changed, 28 insertions(+) create mode 100644 recipes/wip/demos/cubecl/recipe.toml create mode 100644 recipes/wip/sound/piano-rs/recipe.toml diff --git a/recipes/wip/demos/cubecl/recipe.toml b/recipes/wip/demos/cubecl/recipe.toml new file mode 100644 index 000000000..9aa8e268f --- /dev/null +++ b/recipes/wip/demos/cubecl/recipe.toml @@ -0,0 +1,18 @@ +#TODO not compiled or tested +[source] +git = "https://github.com/tracel-ai/cubecl" +[build] +template = "custom" +script = """ +package=gelu +"${COOKBOOK_CARGO}" build \ + --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ + --package "${package}" \ + --release + --no-default-features + --wgpu + mkdir -pv "${COOKBOOK_STAGE}/usr/bin" + cp -v \ + "target/${TARGET}/release/${package}" \ + "${COOKBOOK_STAGE}/usr/bin/${package}" +""" diff --git a/recipes/wip/sound/piano-rs/recipe.toml b/recipes/wip/sound/piano-rs/recipe.toml new file mode 100644 index 000000000..8eea5378c --- /dev/null +++ b/recipes/wip/sound/piano-rs/recipe.toml @@ -0,0 +1,10 @@ +#TODO not compiled or tested +[source] +git = "https://github.com/ritiek/piano-rs" +[build] +template = "custom" +script = """ +mkdir -pv "${COOKBOOK_STAGE}"/usr/share/piano-rs +cp -rv "${COOKBOOK_SOURCE}"/assets "${COOKBOOK_STAGE}"/usr/share/piano-rs +cookbook_cargo +""" -- GitLab