aboutsummaryrefslogtreecommitdiffstats
path: root/testing/youtube-dl/APKBUILD
blob: 40d729f87b344e2730d68fc93730515d1dd04a1f (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
34
35
36
37
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=youtube-dl
pkgver=2012.12.11
pkgrel=0
pkgdesc="A small command-line program for downloading videos from YouTube.com"
url="http://rg3.github.com/youtube-dl/"
arch="noarch"
license="Public Domain"
depends="python>=2.5"
makedepends=""
install=""
subpackages=""
source="saveas-https://raw.github.com/rg3/$pkgname/$pkgver/youtube-dl/youtube-dl-$pkgver"

_builddir=
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
}

package() {
	cd "$srcdir"
	mkdir -p "$pkgdir"/usr/bin
	install -m 0555 youtube-dl-$pkgver "$pkgdir"/usr/bin/youtube-dl
}

md5sums="fdaa2e28100fae06dda7ec68b539e2b0  youtube-dl-2012.12.11"