From f8fe4deadf60646b829c1b9f921eb89dfc5f3f89 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Wed, 13 Dec 2023 15:53:46 -0700 Subject: [PATCH] freepats: convert to toml --- recipes/sound/freepats/recipe.sh | 26 -------------------------- recipes/sound/freepats/recipe.toml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 26 deletions(-) delete mode 100644 recipes/sound/freepats/recipe.sh create mode 100644 recipes/sound/freepats/recipe.toml diff --git a/recipes/sound/freepats/recipe.sh b/recipes/sound/freepats/recipe.sh deleted file mode 100644 index 160064792..000000000 --- a/recipes/sound/freepats/recipe.sh +++ /dev/null @@ -1,26 +0,0 @@ -VERSION=20060219 -GIT=https://gitlab.redox-os.org/redox-os/freepats.git - -function recipe_version { - echo "$VERSION" - skip=1 -} - -function recipe_build { - echo "skipping build" - skip=1 -} - -function recipe_clean { - echo "skipping clean" - skip=1 -} - -function recipe_stage { - mkdir -pv "$1/share/freepats" - cp -Rv ./* "$1/share/freepats" - mkdir -pv "$1/etc/timidity" - echo "dir /share/freepats" > "$1/etc/timidity/freepats.cfg" - echo "source /share/freepats/freepats.cfg" >> "$1/etc/timidity/freepats.cfg" - skip=1 -} diff --git a/recipes/sound/freepats/recipe.toml b/recipes/sound/freepats/recipe.toml new file mode 100644 index 000000000..67bc257fe --- /dev/null +++ b/recipes/sound/freepats/recipe.toml @@ -0,0 +1,12 @@ +[source] +git = "https://gitlab.redox-os.org/redox-os/freepats.git" + +[build] +template = "custom" +script = """ +mkdir -pv "${COOKBOOK_STAGE}/share/freepats" +cp -Rv "${COOKBOOK_SOURCE}/"* "${COOKBOOK_STAGE}/share/freepats" +mkdir -pv "${COOKBOOK_STAGE}/etc/timidity" +echo "dir /share/freepats" > "${COOKBOOK_STAGE}/etc/timidity/freepats.cfg" +echo "source /share/freepats/freepats.cfg" >> "${COOKBOOK_STAGE}/etc/timidity/freepats.cfg" +""" -- GitLab