blob: 11a0d9c26e445b8d00ac3047274e1625f8a649a6 (
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
|
# 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=2014.12.17.2
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="922c0be0428b58f13ee50af4d2450e00 youtube-dl-2014.12.17.2.tar.gz"
sha256sums="302cc64b5a283f60a1b34a5ccf0f09964bf64aa29c5996c945065a72016f68fa youtube-dl-2014.12.17.2.tar.gz"
sha512sums="7c7ccdc83de804ad70b45c47600413b2fdbebb5d78000cb87651926b06c2e6fca1f71382ccb91940384db663e7862804a9dfc92093e352efe18f56e502085add youtube-dl-2014.12.17.2.tar.gz"
|