1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 00:08:51 -05:00

convert to cask

This commit is contained in:
Reinhard Pointner 2014-06-25 14:19:34 +00:00
parent 95004a29e0
commit 363c2c382f

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