2014-09-18 11:05:21 +00:00
|
|
|
class Keybase < Formula
|
|
|
|
homepage "https://keybase.io/"
|
2015-02-21 13:37:27 +00:00
|
|
|
url "https://github.com/keybase/node-client/archive/v0.7.7.tar.gz"
|
|
|
|
sha1 "360f0c621adb9f74bb74893880f42e09a6dd36c3"
|
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
|