blob: fcdb43a074a53ad26b7a0a85e6ed87a0b67573aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  | 
require 'formula'
class YoutubeDl < Formula
  homepage 'http://rg3.github.io/youtube-dl/'
  url 'http://youtube-dl.org/downloads/2013.04.31/youtube-dl-2013.04.31.tar.gz'
  sha1 '03fc4109cccb8359f30c17da59f22235ae7400f4'
  def install
    system "make", "youtube-dl", "PREFIX=#{prefix}"
    bin.install 'youtube-dl'
    man1.install 'youtube-dl.1'
    bash_completion.install 'youtube-dl.bash-completion'
  end
  def caveats
    "To use post-processing options, `brew install ffmpeg`."
  end
end
  |