blob: 7f19de8e2c682bcb22ab2994d88ea51dad74b6d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=youtube-dl
pkgver=2015.07.28
pkgrel=0
pkgdesc="A small command-line program to download videos from YouTube."
url="http://rg3.github.io/youtube-dl/"
arch="noarch"
license="Public Domain"
depends="python>=2.5 py-setuptools ffmpeg"
subpackages=""
source="http://youtube-dl.org/downloads/$pkgver/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/youtube-dl
prepare() {
cd "$_builddir"
sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py || return 1
sed -i 's|etc/fish/completions|share/fish/completions|' setup.py || return 1
}
package() {
cd "$_builddir"
python setup.py install --root="$pkgdir/" --optimize=1 || return 1
mv "$pkgdir/usr/share/bash-completion/completions/youtube-dl.bash-completion" \
"$pkgdir/usr/share/bash-completion/completions/youtube-dl"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
}
md5sums="ae5f3bee2cb961350c9888792ca057b8 youtube-dl-2015.07.21.tar.gz"
sha256sums="0b4276ce0df1add4081ca01b5d9460ce8ac6b218fb29ec6b4ddc7130a9ff29d9 youtube-dl-2015.07.21.tar.gz"
sha512sums="35312a2306e9e4ef9fd87ee0433715e6b29e66bc5515533b87d2baa3413cb98cde61dfac4bc89b26c2a668804d881301e2b6f797b7f781f763ba5447d994eaf2 youtube-dl-2015.07.21.tar.gz"
|