Skip to content

Instantly share code, notes, and snippets.

@benkelly
Last active November 18, 2019 13:22
Show Gist options
  • Save benkelly/25ac3b25c8488748886d07fc87c3c12e to your computer and use it in GitHub Desktop.
Save benkelly/25ac3b25c8488748886d07fc87c3c12e to your computer and use it in GitHub Desktop.
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
@benkelly
Copy link
Author

run

brew install https://gist.githubusercontent.com/benkelly/25ac3b25c8488748886d07fc87c3c12e/raw/2ffa2ef1d8a144d8a2a786e73629460c49a8b3fc/duffle.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment