desktop/youtube-dl/PKGBUILD
2016-04-09 13:28:35 +01:00

25 lines
832 B
Bash

pkgname=youtube-dl
pkgver=2016.04.06
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")
sha1sums=('a4cd57432c968e7be96a8c48bd6771082e05b3c4')
prepare() {
cd "${pkgname}"
sed -i -e 's|etc/bash_completion.d|share/bash-completion/completions|' \
-e 's|youtube-dl.bash-completion|youtube-dl|' setup.py
}
package() {
cd "${pkgname}"
python3 setup.py install --root="${pkgdir}/" --optimize=1
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}