2014-09-18 11:05:21 +00:00
|
|
|
class Keybase < Formula
|
|
|
|
homepage "https://keybase.io/"
|
2015-02-08 14:38:24 +00:00
|
|
|
url "https://github.com/keybase/node-client/archive/v0.7.4.tar.gz"
|
|
|
|
sha1 "784062fd61a4f02fe8f877d67da5552af98f4ae7"
|
2014-09-18 11:05:21 +00:00
|
|
|
head "https://github.com/keybase/node-client.git"
|
|
|
|
|
|
|
|
depends_on "node"
|
2015-01-18 13:31:30 +00:00
|
|
|
depends_on :gpg
|
2014-09-18 11:05:21 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir["*"]
|
|
|
|
(bin/"keybase").write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
|
|
|
export KEYBASE_BIN="#{bin}/keybase"
|
2014-10-27 03:30:28 +00:00
|
|
|
exec "#{Formula["node"].opt_bin}/node" "#{libexec}/bin/main.js" "$@"
|
2014-09-18 11:05:21 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/keybase", "id", "maria"
|
|
|
|
end
|
|
|
|
end
|