Commit f2e751d2 authored by Łukasz Jendrysik's avatar Łukasz Jendrysik
Browse files

testing/youtube-dl: upgrade to 2014.12.12.1

parent dea61f2c
# 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.11.26.3
pkgver=2014.12.12.1
pkgrel=0
pkgdesc="A small command-line program for downloading videos from YouTube.com"
url="http://rg3.github.com/youtube-dl/"
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"
makedepends=""
install=""
depends="python>=2.5 py-setuptools ffmpeg"
subpackages=""
source="saveas-https://yt-dl.org/downloads/$pkgver/youtube-dl/youtube-dl-$pkgver-r$pkgrel"
source="http://youtube-dl.org/downloads/$pkgver/$pkgname-$pkgver.tar.gz"
_builddir=
_builddir="$srcdir"/youtube-dl
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"
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 "$srcdir"
mkdir -p "$pkgdir"/usr/bin
install -m 0555 youtube-dl-$pkgver-r$pkgrel "$pkgdir"/usr/bin/youtube-dl
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="557256eb13e2cc596acba25807028e3d youtube-dl-2014.11.26.3-r0"
sha256sums="75f2207ef4bf1f87b585109fcf431bd57f32248cf769a4c1a967a269a4e3a975 youtube-dl-2014.11.26.3-r0"
sha512sums="9814edd852e8eca194fbb1e9a515ba6a1398e184868c279a480559f655be874e94b4725ece7b8848e73138f94fec3337448d030bd27288da0be9e5f7073d2ddb youtube-dl-2014.11.26.3-r0"
md5sums="47544f22833aa19facb98be77729d56f youtube-dl-2014.12.12.1.tar.gz"
sha256sums="125875255ced92cc079d6b29ea9e97dc2907a8ed866c3e631b413838e3ac1de6 youtube-dl-2014.12.12.1.tar.gz"
sha512sums="15935712244dcd6ef37632e42fa23d52d8c7a9d2875380fd61f47603aa6e596fe6888dab99f0ba073071648eca48d5e4fd91cc61dc938a0fd4704694e106e2e2 youtube-dl-2014.12.12.1.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment