homebrew-core/Formula/cointop.rb
2019-04-24 11:18:17 +02:00

29 lines
930 B
Ruby

class Cointop < Formula
desc "Interactive terminal based UI application for tracking cryptocurrencies"
homepage "https://cointop.sh"
url "https://github.com/miguelmota/cointop/archive/1.1.6.tar.gz"
sha256 "a7f11576080fe04215785b81caec05e8a49e5ed2a8f529b1ce13b064e21e80c0"
bottle do
cellar :any_skip_relocation
sha256 "e040a27d0aa0a46161e6c297ab58d4119148621983d4805b404882716e7fd9b7" => :mojave
sha256 "89e047ad1f9180cf30eeaa89450ae6e12adfa164ca20411dffd1d45fa6ee838c" => :high_sierra
sha256 "16026d3e2e70422c5725e0e4584400a1429fa5a8fe6f5fa275dd6e9518532e2f" => :sierra
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
src = buildpath/"src/github.com/miguelmota/cointop"
src.install buildpath.children
src.cd do
system "go", "build", "-o", bin/"cointop"
prefix.install_metafiles
end
end
test do
system bin/"cointop", "-test"
end
end