From 7a0b6a54ab9869cd929dab74dabc8335a70ddabf Mon Sep 17 00:00:00 2001 From: Anhad Singh Date: Sun, 2 Feb 2025 15:27:43 +1100 Subject: [PATCH] feat(terminfo): convert to TOML recipe Signed-off-by: Anhad Singh --- recipes/other/terminfo/recipe.sh | 22 ---------------------- recipes/other/terminfo/recipe.toml | 11 +++++++++++ 2 files changed, 11 insertions(+), 22 deletions(-) delete mode 100644 recipes/other/terminfo/recipe.sh create mode 100644 recipes/other/terminfo/recipe.toml diff --git a/recipes/other/terminfo/recipe.sh b/recipes/other/terminfo/recipe.sh deleted file mode 100644 index 8fdee2fcf..000000000 --- a/recipes/other/terminfo/recipe.sh +++ /dev/null @@ -1,22 +0,0 @@ -GIT=https://github.com/sajattack/terminfo - -function recipe_version { - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" - skip=1 -} - -function recipe_build { - echo "skipping build" - skip=1 -} - -function recipe_clean { - echo "skipping clean" - skip=1 -} - -function recipe_stage { - mkdir -p ../stage/share - cp -r * ../stage/share/ - skip=1 -} diff --git a/recipes/other/terminfo/recipe.toml b/recipes/other/terminfo/recipe.toml new file mode 100644 index 000000000..856ea8735 --- /dev/null +++ b/recipes/other/terminfo/recipe.toml @@ -0,0 +1,11 @@ +[source] +git = "https://github.com/sajattack/terminfo" +branch = "master" + +[build] +template = "custom" +script = """ +mkdir -p ${COOKBOOK_STAGE}/share +cp -r ${COOKBOOK_SOURCE}/. ${COOKBOOK_STAGE}/share/ +""" +