From fb0ccdb1d99c458f152ea13deb7d0ded1d03bebf Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sat, 21 Dec 2013 11:11:30 +0100 Subject: [PATCH] Add recipe for youtube-dl. --- .../youtube_dl/youtube_dl-2013.12.20.recipe | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 net-misc/youtube_dl/youtube_dl-2013.12.20.recipe diff --git a/net-misc/youtube_dl/youtube_dl-2013.12.20.recipe b/net-misc/youtube_dl/youtube_dl-2013.12.20.recipe new file mode 100644 index 000000000..b9d5d7361 --- /dev/null +++ b/net-misc/youtube_dl/youtube_dl-2013.12.20.recipe @@ -0,0 +1,56 @@ +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/index.html" +SRC_URI="https://yt-dl.org/downloads/2013.12.20/youtube-dl-2013.12.20.tar.gz" +CHECKSUM_MD5="be0cf52206f9ba3f5f841deec3ce3bde" +REVISION="1" +LICENSE="Public Domain" +COPYRIGHT="2006-2013 Ricardo Garcia Gonzalez" + +ARCHITECTURES="any" + +PROVIDES=" + youtube_dl = $portVersion + cmd:youtube_dl = $portVersion + " +REQUIRES=" + haiku >= $haikuVersion + cmd:python + " +BUILD_REQUIRES=" + haiku_devel >= $haikuVersion + " +BUILD_PREREQUIRES=" + cmd:make + cmd:zip + " + +SOURCE_DIR="youtube-dl" + +BUILD() +{ + true +} + +INSTALL() +{ + 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 + + mkdir -p $binDir $manDir/man1 + cp -a youtube-dl $binDir + cp -a youtube-dl.1 $manDir/man1 +}