homebrew-core/Formula/youtube-dl.rb

19 lines
498 B
Ruby

require 'formula'
class YoutubeDl < Formula
homepage 'http://rg3.github.io/youtube-dl/'
url 'http://youtube-dl.org/downloads/2013.09.04/youtube-dl-2013.09.04.tar.gz'
sha1 '33b0ad8af36bd9038b8a6d0e44f5493e0b763462'
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