# Contributor: Łukasz Jendrysik # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=youtube-dl pkgver=2015.02.21 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="4ea83fd4b99654470fdc6935ab147ce7 youtube-dl-2015.02.21.tar.gz" sha256sums="3694979c2296e182d92be8e6c5b7d90fb95b9d4d6f070d3912856dcb264ca03b youtube-dl-2015.02.21.tar.gz" sha512sums="449b6761209db33823eef6f674816ed47d6adc290a0afb73aebeda3acb12bfe56871d9989dc2e8d2cb00d7ae520c2f898e28b0b2c641097eb044a1df1c1eec28 youtube-dl-2015.02.21.tar.gz"