From 9b18da994ce3f88c35467dd85c23c060d048c8ac Mon Sep 17 00:00:00 2001 From: Bob Date: Sat, 11 Jun 2016 12:16:33 -0600 Subject: [PATCH] Create youtube_dl-2016.05.21.2.recipe (#616) * Create youtube_dl-2016.05.21.2.recipe New recipe for youtube-dl * Update youtube_dl-2016.05.21.2.recipe * Update youtube_dl-2016.05.21.2.recipe --- .../youtube_dl/youtube_dl-2016.05.21.2.recipe | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 net-misc/youtube_dl/youtube_dl-2016.05.21.2.recipe diff --git a/net-misc/youtube_dl/youtube_dl-2016.05.21.2.recipe b/net-misc/youtube_dl/youtube_dl-2016.05.21.2.recipe new file mode 100644 index 000000000..5fc53699c --- /dev/null +++ b/net-misc/youtube_dl/youtube_dl-2016.05.21.2.recipe @@ -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/" +COPYRIGHT="2006-2016 Ricardo Garcia Gonzalez" +LICENSE="Public Domain" +REVISION="1" +SOURCE_URI="https://github.com/rg3/youtube-dl/archive/$portVersion.tar.gz" +CHECKSUM_SHA256="c8c8b58192e34592626611852a8f46c88022a07f2051e0338e2444c6adc57294" +SOURCE_DIR="youtube-dl-$portVersion" + +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 + cp -a youtube-dl $binDir +} + +TEST() +{ + youtube-dl --version +}