2010-09-09 11:04:13 +08:00
|
|
|
pkgname=youtube-dl
|
2016-04-25 06:43:10 +08:00
|
|
|
pkgver=2016.04.24
|
2016-03-31 19:59:54 +08:00
|
|
|
pkgrel=1
|
2010-09-09 11:04:13 +08:00
|
|
|
pkgdesc='A small command-line program to download videos from YouTube.com'
|
2012-11-28 03:01:13 +08:00
|
|
|
arch=('x86_64')
|
2011-04-01 00:09:18 +08:00
|
|
|
url='http://rg3.github.com/youtube-dl/'
|
2011-08-05 07:09:20 +08:00
|
|
|
license=('custom')
|
2014-04-20 07:08:24 +08:00
|
|
|
depends=('python3' 'python3-setuptools')
|
2014-09-05 10:38:50 +08:00
|
|
|
optdepends=('ffmpeg: for video post-processing'
|
|
|
|
'rtmpdump: for rtmp streams support')
|
2012-03-16 22:51:37 +08:00
|
|
|
categories=('network')
|
2016-03-31 19:24:13 +08:00
|
|
|
source=("http://youtube-dl.org/downloads/${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
2016-04-25 06:43:10 +08:00
|
|
|
sha1sums=('f9e445c30e3dacef15b69538379510722e3b3e7c')
|
2010-09-09 11:04:13 +08:00
|
|
|
|
2016-03-31 19:51:01 +08:00
|
|
|
prepare() {
|
|
|
|
cd "${pkgname}"
|
2013-01-10 00:14:04 +08:00
|
|
|
sed -i -e 's|etc/bash_completion.d|share/bash-completion/completions|' \
|
|
|
|
-e 's|youtube-dl.bash-completion|youtube-dl|' setup.py
|
2016-03-31 19:51:01 +08:00
|
|
|
}
|
|
|
|
package() {
|
|
|
|
cd "${pkgname}"
|
2014-04-20 07:08:24 +08:00
|
|
|
python3 setup.py install --root="${pkgdir}/" --optimize=1
|
2013-01-10 00:14:04 +08:00
|
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2013-07-30 17:14:06 +08:00
|
|
|
}
|