homebrew-core/Formula/sjk.rb

20 lines
510 B
Ruby

class Sjk < Formula
desc "Swiss Java Knife"
homepage "https://github.com/aragozin/jvm-tools"
url "https://search.maven.org/remotecontent?filepath=org/gridkit/jvmtool/sjk-plus/0.10.1/sjk-plus-0.10.1.jar"
sha256 "dafd3b18de282265fe0f806872b23211a1318fc63aaef284fbd6abee5a288368"
bottle :unneeded
depends_on :java
def install
libexec.install "sjk-plus-#{version}.jar"
bin.write_jar_script "#{libexec}/sjk-plus-#{version}.jar", "sjk"
end
test do
system bin/"sjk", "jps"
end
end