youtube_dl: add recipe for 2015.01.10.

This is already in the HaikuPorts depot, but whoever uploaded the
package forgot to commit it...
This commit is contained in:
Augustin Cavalier
2015-02-16 13:50:45 -05:00
parent cf7c697390
commit 2495cd2fad

View File

@@ -0,0 +1,55 @@
SUMMARY="A command-line program to download videos from various sites"
DESCRIPTION="The program is usually invoked as youtube-dl followed by
options and the video URL. Run 'youtube-dl --help' and get a summary \
of all options.
Some YouTube videos are served using Adobe's proprietary RTMP protocol, which \
imposes DRM restrictions and encrypts the connection. youtube-dl is not able \
to download these videos by itself."
HOMEPAGE="http://rg3.github.io/youtube-dl/"
SRC_URI="http://youtube-dl.org/downloads/$portVersion/youtube-dl-$portVersion.tar.gz"
CHECKSUM_SHA256="a14eb80e37c452d537f0f5b0d826c57f099776a4a38016533fa6b5c66daeec46"
SOURCE_DIR="youtube-dl"
REVISION="1"
LICENSE="Public Domain"
COPYRIGHT="2006-2015 Ricardo Garcia Gonzalez"
ARCHITECTURES="any"
PROVIDES="
youtube_dl = $portVersion
cmd:youtube_dl = $portVersion
"
REQUIRES="
haiku
cmd:python
cmd:ffmpeg
"
BUILD_REQUIRES="
haiku_devel
cmd:python
"
BUILD_PREREQUIRES="
cmd:zip
"
BUILD()
{
zip -q youtube-dl youtube_dl/*.py youtube_dl/*/*.py
zip -q -j youtube-dl youtube_dl/__main__.py
echo '#!/bin/python' > youtube-dl
cat youtube-dl.zip >> youtube-dl
rm youtube-dl.zip
chmod a+x youtube-dl
}
INSTALL()
{
mkdir -p $binDir $manDir/man1
cp -a youtube-dl $binDir
cp -a youtube-dl.1 $manDir/man1
}
TEST()
{
youtube-dl --version
}