aboutsummaryrefslogtreecommitdiffstats
path: root/main/youtube-dl/APKBUILD
blob: 0ff9fc098586bcfd105f8a3e55231f2449c07c1f (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=2015.04.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="20fac1e1a31caf544741a98c21991e52  youtube-dl-2015.04.28.tar.gz"
sha256sums="08748955f1a511d1c118d4241cc8380237383afb76ce5e547d73fedd5aee968f  youtube-dl-2015.04.28.tar.gz"
sha512sums="3267ffce9944e2a4322ae1a73d074cf449a4ff7908ead85c05b610326245ae821c2bc51d88f5c5137413541998cdac8432d93ecd06f5ea8b06b8c39574ca10e6  youtube-dl-2015.04.28.tar.gz"