mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
24 lines
912 B
Bash
24 lines
912 B
Bash
pkgname=youtube-dl
|
|
pkgver=2016.03.18
|
|
pkgrel=2
|
|
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{,.sig})
|
|
sha1sums=('9ec09c30fe2fac272f3002d3942da3b873a82981'
|
|
'SKIP')
|
|
validpgpkeys=('7D33D762FD6C35130481347FDB4B54CBA4826A18') # Philipp Hagemeister
|
|
|
|
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"
|
|
}
|