convert to cask

This commit is contained in:
Reinhard Pointner 2014-06-25 14:19:34 +00:00
parent 95004a29e0
commit 363c2c382f
1 changed files with 5 additions and 23 deletions

View File

@ -1,29 +1,11 @@
require "formula"
class Filebot < Formula
class Filebot < Cask
homepage "http://www.filebot.net/"
url "https://downloads.sourceforge.net/project/filebot/filebot/HEAD/FileBot_4.1.1/FileBot_4.1.app.tar.gz"
sha1 "7a4e80f3d2bdb82afaa00e8350eba0c8888b8fe8"
sha256 "4aa3dd0532bd0266ec3bcb60553507dfb51c054a406fba95bd0c6d5c0dce7ec2"
version "4.1.1"
def install
# Create .app bundle in prefix
(prefix/'FileBot.app').install Dir['*']
link "FileBot.app"
binary "FileBot.app/Contents/MacOS/filebot.sh", :target => "filebot"
# Create filebot symlink in bin
bin.install_symlink prefix/'FileBot.app/Contents/MacOS/filebot.sh' => 'filebot'
end
def caveats
"FileBot requires Java 8. Run `java -version` to verify."
end
def post_install
# Clearing cache and temporary files
system "#{bin}/filebot", "-clear-cache"
end
test do
system "#{bin}/filebot", "-version"
end
caveats "FileBot requires Java 8. Run `java -version` to verify."
end