# Maintainer (Arch): Eric BĂ©langer # Maintainer (Parabola): Alon Ivtsan # Based on https://www.archlinux.org/packages/community/any/youtube-dl/ pkgname=youtube-dl-current _pkgname=youtube-dl provides=(youtube-dl) pkgver=2013.07.24.2 pkgrel=1 pkgdesc="A small command-line program to download videos from YouTube.com and a few more sites" arch=('any') url="http://rg3.github.io/youtube-dl/" license=('custom') depends=('python') makedepends=('python-distribute') source=(http://youtube-dl.org/downloads/${pkgver}/${_pkgname}-${pkgver}.tar.gz{,.sig}) md5sums=('7ffcae6db1e5387a5f002e195da23cf4' 'SKIP') prepare() { cd ${_pkgname} sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py } package() { cd ${_pkgname} python setup.py install --root="${pkgdir}/" --optimize=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" }