From 325a48ff5adc346a59a65f0d35358e091f8ef36b Mon Sep 17 00:00:00 2001 From: Ribbon <ribbon_45@proton.me> Date: Mon, 5 Aug 2024 03:00:54 +0000 Subject: [PATCH] Add a recipe --- recipes/wip/image/upscaling/video2x/recipe.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 recipes/wip/image/upscaling/video2x/recipe.toml diff --git a/recipes/wip/image/upscaling/video2x/recipe.toml b/recipes/wip/image/upscaling/video2x/recipe.toml new file mode 100644 index 000000000..91d28ed00 --- /dev/null +++ b/recipes/wip/image/upscaling/video2x/recipe.toml @@ -0,0 +1,12 @@ +#TODO maybe incomplete script +[source] +git = "https://github.com/k4yt3x/video2x" +[build] +template = "custom" +script = """ +mkdir -pv "${COOKBOOK_STAGE}"/usr/share/video2x +mkdir -pv "${COOKBOOK_STAGE}"/usr/bin +cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/share/video2x +echo "#!/usr/bin/env sh \n cd /usr/share/video2x \n python3 -m video2x" > "${COOKBOOK_STAGE}"/usr/bin/video2x +chmod a+x "${COOKBOOK_STAGE}"/usr/bin/video2x +""" -- GitLab