# Contributor: Peter Bui # Contributor: Łukasz Jendrysik # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=youtube-dl pkgver=2015.07.28 pkgrel=0 pkgdesc="A small command-line program to download videos from YouTube." url="http://rg3.github.io/youtube-dl/" arch="noarch" license="Public Domain" depends="python>=2.5 py-setuptools ffmpeg" subpackages="" source="http://youtube-dl.org/downloads/$pkgver/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/youtube-dl prepare() { cd "$_builddir" sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py || return 1 sed -i 's|etc/fish/completions|share/fish/completions|' setup.py || return 1 } package() { cd "$_builddir" python setup.py install --root="$pkgdir/" --optimize=1 || return 1 mv "$pkgdir/usr/share/bash-completion/completions/youtube-dl.bash-completion" \ "$pkgdir/usr/share/bash-completion/completions/youtube-dl" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1 } md5sums="ae5f3bee2cb961350c9888792ca057b8 youtube-dl-2015.07.21.tar.gz" sha256sums="0b4276ce0df1add4081ca01b5d9460ce8ac6b218fb29ec6b4ddc7130a9ff29d9 youtube-dl-2015.07.21.tar.gz" sha512sums="35312a2306e9e4ef9fd87ee0433715e6b29e66bc5515533b87d2baa3413cb98cde61dfac4bc89b26c2a668804d881301e2b6f797b7f781f763ba5447d994eaf2 youtube-dl-2015.07.21.tar.gz"