desktop/youtube-dl/PKGBUILD
2014-06-20 10:22:13 +00:00

26 lines
993 B
Bash

# Maintainer: Jeff Huang <s8321414[at]gmail[dot]com>
# maintainer: Francesco Marinucci <franzmari[at]chakra-project[dot]it>
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
pkgname=youtube-dl
pkgver=2014.06.19
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')
categories=('network')
source=(http://youtube-dl.org/downloads/${pkgver}/${pkgname}-${pkgver}.tar.gz
http://youtube-dl.org/downloads/${pkgver}/${pkgname}-${pkgver}.tar.gz.sig)
sha1sums=('34c2d31ff388a0b2e8905b40c2189596928ad761'
'SKIP')
package() {
cd "${srcdir}/${pkgname}"
sed -i -e 's|etc/bash_completion.d|share/bash-completion/completions|' \
-e 's|youtube-dl.bash-completion|youtube-dl|' setup.py
python3 setup.py install --root="${pkgdir}/" --optimize=1
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}