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-03-13 02:28:25 +00:00
|
|
|
url "https://github.com/keybase/client/archive/v1.0.14-1.tar.gz"
|
|
|
|
version "1.0.14-1"
|
|
|
|
sha256 "ef8f6d01206428a99558885ecec8de99089a60fe5f4b6e6f425e01a3fb368853"
|
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-03-13 02:49:31 +00:00
|
|
|
sha256 "7bb1a2c16840f219e24fe79e2b125a89324416bd8a9f3e42c75231a58c31fc00" => :el_capitan
|
|
|
|
sha256 "91c6561cedf3bc485d27d82a55e9a66385cff3db17ce27d47b0f6e5b5d231d7a" => :yosemite
|
|
|
|
sha256 "12198ddd5fd25e5c77f154428470ca21504f6495fd9f8c3e7f44df7d05fa73e5" => :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
|