mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-02 04:58:52 +02:00
Updated youtube-dl (2014.10.15)
* Removed cmd:python from BUILD_REQUIRES * Added a most simple TEST() that just tests if the script runs (as suggested by PulkoMandy a while back)
This commit is contained in:
56
net-misc/youtube_dl/youtube_dl-2014.10.15.recipe
Normal file
56
net-misc/youtube_dl/youtube_dl-2014.10.15.recipe
Normal file
@@ -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="http://youtube-dl.org/downloads/2014.10.15/youtube-dl-2014.10.15.tar.gz"
|
||||||
|
CHECKSUM_SHA256="f17e0a0ebae95120906c0c866caabb76ba5bf2abc8ae5cb939f8d584b1a511a8"
|
||||||
|
REVISION="1"
|
||||||
|
LICENSE="Public Domain"
|
||||||
|
COPYRIGHT="2006-2014 Ricardo Garcia Gonzalez"
|
||||||
|
|
||||||
|
ARCHITECTURES="any"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
youtube_dl = $portVersion
|
||||||
|
cmd:youtube_dl = $portVersion
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku >= $haikuVersion
|
||||||
|
cmd:python
|
||||||
|
"
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
haiku_devel >= $haikuVersion
|
||||||
|
cmd:python
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:zip
|
||||||
|
"
|
||||||
|
|
||||||
|
SOURCE_DIR="youtube-dl"
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user