Last active
November 18, 2019 13:22
-
-
Save benkelly/25ac3b25c8488748886d07fc87c3c12e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Duffle < Formula | |
desc "Duffle is the reference implementation of the CNAB specification" | |
homepage "https://github.com/cnabio/duffle/releases" | |
url "https://github.com/cnabio/duffle/releases/latest/download/duffle-darwin-amd64" | |
sha256 "584839c76de74bf92dc387bb3eea8d1b937b0f862cdc8c71de1bfc0f376631dc" | |
bottle :unneeded | |
def install | |
rm_f Dir["bin/*.cmd", "sbin/*.cmd", "libexec/*.cmd", "etc/hadoop/*.cmd"] | |
libexec.install %w[bin sbin libexec share etc] | |
bin.write_exec_script Dir["#{libexec}/bin/*"] | |
sbin.write_exec_script Dir["#{libexec}/sbin/*"] | |
libexec.write_exec_script Dir["#{libexec}/libexec/*"] | |
chmod 0755, Dir["#{libexec}/*.sh"] | |
end | |
test do | |
system bin/"duffle", "fs", "-ls" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
run