desktop/youtube-dl/PKGBUILD

30 lines
1.1 KiB
Bash
Raw Normal View History

2010-09-09 11:04:13 +08:00
pkgname=youtube-dl
2017-02-12 16:05:32 +08:00
pkgver=2017.02.11
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')
depends=('python3' 'python3-setuptools')
2014-09-05 10:38:50 +08:00
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})
2017-02-12 16:05:32 +08:00
sha1sums=('8091f0bc7cd1418b100baef64d931b7c796bc1cc'
'SKIP')
2017-01-13 03:57:18 +08:00
validpgpkeys=('7D33D762FD6C35130481347FDB4B54CBA4826A18' # Philipp Hagemeister
'ED7F5BF46B3BBED81C87368E2C393E0F18A9236D') # Sergey M.
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|' \
-e 's|etc/fish/completions|share/fish/completions|' setup.py
2016-03-31 19:51:01 +08:00
}
package() {
cd "${pkgname}"
python3 setup.py install --root="${pkgdir}/" --optimize=1
install -Dm644 youtube-dl.zsh "${pkgdir}/usr/share/zsh/site-functions/_youtube-dl"
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
}