desktop/youtube-dl/PKGBUILD
2016-06-30 07:15:39 +01:00

29 lines
1.1 KiB
Bash

pkgname=youtube-dl
pkgver=2016.06.27
pkgrel=1
pkgdesc='A small command-line program to download videos from YouTube.com'
arch=('x86_64')
url='http://rg3.github.com/youtube-dl/'
license=('custom')
depends=('python3' 'python3-setuptools')
optdepends=('ffmpeg: for video post-processing'
'rtmpdump: for rtmp streams support')
categories=('network')
source=("http://youtube-dl.org/downloads/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.sig})
sha1sums=('e30f5075d030289ef017dcfda19dbb2aa80cb473'
'SKIP')
validpgpkeys=('7D33D762FD6C35130481347FDB4B54CBA4826A18') # Philipp Hagemeister
prepare() {
cd "${pkgname}"
sed -i -e 's|etc/bash_completion.d|share/bash-completion/completions|' \
-e 's|youtube-dl.bash-completion|youtube-dl|' \
-e 's|etc/fish/completions|share/fish/completions|' setup.py
}
package() {
cd "${pkgname}"
python3 setup.py install --root="${pkgdir}/" --optimize=1
install -Dm644 youtube-dl.zsh "${pkgdir}/usr/share/zsh/site-functions/_youtube-dl"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}