homebrew-core/Formula/keybase.rb
2015-12-01 18:51:06 -08:00

33 lines
1 KiB
Ruby

class Keybase < Formula
desc "Command-line interface to Keybase.io"
homepage "https://keybase.io/"
url "https://github.com/keybase/client/archive/v1.0.5-0.tar.gz"
sha256 "fcc41dbe3c602c33dd5853fd81ab66baa91c2cc0524ed5bdf89456f2df143e8a"
version "1.0.5-0"
head "https://github.com/keybase/client.git"
bottle do
cellar :any_skip_relocation
sha256 "31e8f3d4ca83788e3dfeccd02fdeee982cd8485bc847abe7d9491fd0a8a6a43f" => :el_capitan
sha256 "63643847e90292aedde2f6cc857df38198d6705cedd987f7e603f1bdda295ca6" => :yosemite
sha256 "a3770d03fcd1deb48e97e4bab7f057f850cf903eb611250481eb22a1b182a798" => :mavericks
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["GOBIN"] = buildpath
ENV["GO15VENDOREXPERIMENT"] = "1"
(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