#TODO not compiled or tested
[source]
tar = "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz"
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}"/usr/bin/yt-dlp-dir
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}"/usr/bin/yt-dlp-dir
echo "/usr/bin/yt-dlp-dir/yt-dlp.sh" > "${COOKBOOK_STAGE}"/usr/bin/yt-dlp
chmod a+x "${COOKBOOK_STAGE}"/usr/bin/yt-dlp-dir/yt-dlp.sh "${COOKBOOK_STAGE}"/usr/bin/yt-dlp
"""
