import 'compile/python' name=youtube-dl version=2018.01.07 update_url="http://rg3.github.io/$name/download.html" dlextract "https://yt-dl.org/downloads/$version/$name-$version.tar.gz" \ '49ef4d7c3522eadad4fc57b8c47b4c6d' _ cd "$name" # Disable the installation of the bash completion sed -i -e '/bash-completion/d' setup.py # Fix paths sed -i -e "s/etc\/fish\/completions/$(safe_sed "$dir_data/fish/completions")/" \ -e "s/share\/doc/$(safe_sed "$dir_doc")/" \ -e "s/share\/man/$(safe_sed "$dir_man")/" setup.py compile_python 3 # Install completions install -Dm644 "$name.bash-completion" "$dir_install/$dir_prefix/$dir_data/bash-completion/completions/$name" install -Dm644 "$name.zsh" "$dir_install/$dir_prefix/$dir_data/zsh/site-functions/_$name" # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: