mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
pkgname=youtube-dl
|
|
pkgver=2018.01.07
|
|
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"{,.sig})
|
|
sha1sums=('620e234a884124c2b398ea6577df21b6662acef7'
|
|
'SKIP')
|
|
validpgpkeys=('7D33D762FD6C35130481347FDB4B54CBA4826A18' # Philipp Hagemeister
|
|
'ED7F5BF46B3BBED81C87368E2C393E0F18A9236D') # Sergey M.
|
|
|
|
prepare() {
|
|
cd "${pkgname}"
|
|
sed -i -e 's|etc/bash_completion.d|share/bash-completion/completions|' \
|
|
-e 's|youtube-dl.bash-completion|youtube-dl|' \
|
|
-e 's|etc/fish/completions|share/fish/completions|' setup.py
|
|
}
|
|
package() {
|
|
cd "${pkgname}"
|
|
python3 setup.py install --root="${pkgdir}/" --optimize=1
|
|
install -Dm644 youtube-dl.zsh "${pkgdir}/usr/share/zsh/site-functions/_youtube-dl"
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|