homebrew-core/Formula/keybase.rb
Nicolò Ciraci 4c9f2a7940 keybase 0.7.4
Bump to version 0.7.4

Closes Homebrew/homebrew#36652.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-08 15:01:19 +00:00

22 lines
562 B
Ruby

class Keybase < Formula
homepage "https://keybase.io/"
url "https://github.com/keybase/node-client/archive/v0.7.4.tar.gz"
sha1 "784062fd61a4f02fe8f877d67da5552af98f4ae7"
head "https://github.com/keybase/node-client.git"
depends_on "node"
depends_on :gpg
def install
libexec.install Dir["*"]
(bin/"keybase").write <<-EOS.undent
#!/bin/sh
export KEYBASE_BIN="#{bin}/keybase"
exec "#{Formula["node"].opt_bin}/node" "#{libexec}/bin/main.js" "$@"
EOS
end
test do
system "#{bin}/keybase", "id", "maria"
end
end