homebrew-core/Formula/keybase.rb

31 lines
998 B
Ruby
Raw Normal View History

class Keybase < Formula
desc "Command-line interface to Keybase.io"
homepage "https://keybase.io/"
url "https://github.com/keybase/client/archive/v1.0.15.tar.gz"
sha256 "6fe66b07772ca000879bda65cb9d112d2dbbc301d6afa4d4b46055d385f86e36"
head "https://github.com/keybase/client.git"
2015-10-19 13:52:48 +00:00
2015-11-16 16:22:18 +00:00
bottle do
2015-11-25 06:06:46 +00:00
cellar :any_skip_relocation
2016-04-12 00:15:32 +00:00
sha256 "265f030af32a124b0e4ebec4029ad05c08538fe02adc5865b2e2810bb0f2d9f1" => :el_capitan
sha256 "cd5b687f19111f07427d4d1e82476fb3021e12bb872893b8dc1d29f03fae621b" => :yosemite
sha256 "bbf3e0bb39c69cb54036d2862efd03e61c83cbca62084f833577a28a497a9b7d" => :mavericks
2015-11-16 16:22:18 +00:00
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