1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -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 < Cask
class Filebot < Formula
homepage "http://www.filebot.net/" homepage "http://www.filebot.net/"
url "https://downloads.sourceforge.net/project/filebot/filebot/HEAD/FileBot_4.1.1/FileBot_4.1.app.tar.gz" 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" version "4.1.1"
def install link "FileBot.app"
# Create .app bundle in prefix binary "FileBot.app/Contents/MacOS/filebot.sh", :target => "filebot"
(prefix/'FileBot.app').install Dir['*']
# Create filebot symlink in bin caveats "FileBot requires Java 8. Run `java -version` to verify."
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
end end