redox/recipes/wip/net/bittorrent/webtorrent-cli/recipe.toml
2024-09-06 05:00:44 +00:00

14 lines
530 B
TOML

#TODO not compiled or tested
[source]
git = "https://github.com/webtorrent/webtorrent-cli"
rev = "298ae70a7baeb1bfc836abe2821baf78b50c3af1"
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}"/usr/share/webtorrent-cli
mkdir -pv "${COOKBOOK_STAGE}"/usr/bin
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/share/webtorrent-cli
echo "#!/usr/bin/env sh \n cd /usr/share/webtorrent-cli \n npx webtorrent-cli" > "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli
chmod a+x "${COOKBOOK_STAGE}"/usr/bin/webtorrent-cli
"""