mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-07 03:58:41 +08:00
14 lines
530 B
TOML
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
|
|
"""
|