youtube-dl

This commit is contained in:
milisbir 2018-01-03 19:05:21 +02:00
parent 2f81a7ee80
commit ed2f8665e3
1 changed files with 7 additions and 9 deletions

View File

@ -1,22 +1,20 @@
# Tanım: YouTube.com'dan ve birkaç başka siteden videolar indirmek için küçük bir program
# URL: http://rg3.github.io/youtube-dl/
# Paketçi: Cihan_Alkan
# Gerekler: python3 python3-setuptools
# Gerekler: python python-setuptools
# Grup: medya
isim=youtube-dl
surum=2017.12.31
devir=1
kaynak=(http://youtube-dl.org/downloads/${surum}/${isim}-${surum}.tar.gz
kaynak=(https://github.com/rg3/youtube-dl/archive/$surum.tar.gz::${isim}-${surum}.tar.gz
https://github.com/rst0git/youtube-dl-mp3/raw/master/youtube-dl-mp3)
derle() {
cd youtube-dl
cd youtube-dl-$surum
sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py
python3 setup.py install --root="${PKG}/" --optimize=1
mv "${PKG}/usr/share/bash-completion/completions/youtube-dl.bash-completion" \
"${PKG}/usr/share/bash-completion/completions/youtube-dl"
install -Dm644 youtube-dl.zsh "${PKG}/usr/share/zsh/site-functions/_youtube-dl"
install -Dm644 LICENSE "${PKG}/usr/share/licenses/${isim}/LICENSE"
sed -i 's|etc/fish/completions|share/fish/completions|' setup.py
python setup.py install --root="${PKG}/" --optimize=1
install -Dm755 ../youtube-dl-mp3 "${PKG}/usr/bin/youtube-dl-mp3"
rm -rf $PKG/usr/share
}