homebrew-core/Formula/keybase.rb
2016-08-09 18:06:23 -07:00

30 lines
998 B
Ruby

class Keybase < Formula
desc "Command-line interface to Keybase.io"
homepage "https://keybase.io/"
url "https://github.com/keybase/client/archive/v1.0.17.tar.gz"
sha256 "937b4bc61c889ef3982a5352d8a49cda8a4f4db28732d4cb21df1fe20128399c"
head "https://github.com/keybase/client.git"
bottle do
cellar :any_skip_relocation
sha256 "3b3a5451ba2cedf14adaaaa6928c300de9c88ff4ea7bb9e35bbd6c9090eb65a6" => :el_capitan
sha256 "944e4effa6edbccb66649200782f6439295519390f2cbb47e476cfb4a1864c83" => :yosemite
sha256 "300573098e20510b6593243628275c433f81f3cc8b08a74848e61b32ec6ef49a" => :mavericks
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["GOBIN"] = buildpath
(buildpath/"src/github.com/keybase/client/").install "go"
system "go", "build", "-a", "-tags", "production brew", "github.com/keybase/client/go/keybase"
bin.install "keybase"
end
test do
system "#{bin}/keybase", "-standalone", "id", "homebrew"
end
end