2018-04-27 19:12:15 +00:00
|
|
|
class Cointop < Formula
|
|
|
|
desc "Interactive terminal based UI application for tracking cryptocurrencies"
|
|
|
|
homepage "https://cointop.sh"
|
2018-06-23 10:14:47 +00:00
|
|
|
url "https://github.com/miguelmota/cointop/archive/1.0.6.tar.gz"
|
|
|
|
sha256 "6188f21e7fcdfe686324a30a5ccc89a684e2a9acd81f2b042309ec0b28c26272"
|
2018-04-27 19:12:15 +00:00
|
|
|
|
2018-06-07 23:29:36 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2018-06-23 10:20:06 +00:00
|
|
|
sha256 "d325a2cabff5f820bfa29b1b0bf5f8fe95e10aa0910a41a26b4696e00525349d" => :high_sierra
|
|
|
|
sha256 "4d3688ea6e5da782ed7fb3f0fdc37f6dea31a6d213bdc826cbba9e0cc6762199" => :sierra
|
|
|
|
sha256 "bc0d504ddde42b525af627d5e4b7f9041e8d49179dd822ccedd46f673822fc65" => :el_capitan
|
2018-06-07 23:29:36 +00:00
|
|
|
end
|
|
|
|
|
2018-04-27 19:12:15 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
(buildpath/"src/github.com/miguelmota/cointop").install buildpath.children
|
|
|
|
cd "src/github.com/miguelmota/cointop" do
|
|
|
|
system "go", "build", "-o", bin/"cointop"
|
|
|
|
prefix.install_metafiles
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"cointop", "-test"
|
|
|
|
end
|
|
|
|
end
|