Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
861 B

import 'compile/python'
name=youtube-dl
version=2017.04.26
update_url="http://rg3.github.io/$name/download.html"
dlextract "https://yt-dl.org/downloads/$version/$name-$version.tar.gz" \
'42949535128214863e1cfc41cc7f1a1a'
header_end
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_datadir/fish/completions")/" \
-e "s/share\/doc/$(safe_sed "$dir_docdir")/" \
-e "s/share\/man/$(safe_sed "$dir_mandir")/" setup.py
compile_python 3
# Install completions
install -Dm644 "$name.bash-completion" "$dir_install/$dir_prefix/$dir_datadir/bash-completion/completions/$name"
install -Dm644 "$name.zsh" "$dir_install/$dir_prefix/$dir_datadir/zsh/site-functions/_$name"
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: