2014-09-18 11:05:21 +00:00
|
|
|
class Keybase < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Command-line interface to Keybase.io"
|
2014-09-18 11:05:21 +00:00
|
|
|
homepage "https://keybase.io/"
|
2016-04-11 23:44:17 +00:00
|
|
|
url "https://github.com/keybase/client/archive/v1.0.15.tar.gz"
|
|
|
|
sha256 "6fe66b07772ca000879bda65cb9d112d2dbbc301d6afa4d4b46055d385f86e36"
|
2014-09-18 11:05:21 +00:00
|
|
|
|
2015-11-13 16:13:16 +00:00
|
|
|
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
|
|
|
|
|
2015-11-13 16:13:16 +00:00
|
|
|
depends_on "go" => :build
|
2014-09-18 11:05:21 +00:00
|
|
|
|
|
|
|
def install
|
2015-11-13 16:13:16 +00:00
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
ENV["GOBIN"] = buildpath
|
|
|
|
(buildpath/"src/github.com/keybase/client/").install "go"
|
2015-03-28 04:59:49 +00:00
|
|
|
|
2015-11-13 16:13:16 +00:00
|
|
|
system "go", "build", "-a", "-tags", "production brew", "github.com/keybase/client/go/keybase"
|
|
|
|
bin.install "keybase"
|
2014-09-18 11:05:21 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-11-13 16:13:16 +00:00
|
|
|
system "#{bin}/keybase", "-standalone", "id", "homebrew"
|
2014-09-18 11:05:21 +00:00
|
|
|
end
|
|
|
|
end
|