You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cointop/cointop.rb

23 lines
715 B
Ruby

6 years ago
class Cointop < Formula
6 years ago
desc "Interactive terminal based UI application for tracking cryptocurrencies"
6 years ago
homepage "https://cointop.sh"
6 years ago
url "https://github.com/miguelmota/cointop/archive/1.0.1.tar.gz"
sha256 "bb5450c734a2d0c54a1dc7d7f42be85eb2163c03e6d3dc1782d74b54a8cbfa69"
6 years ago
6 years ago
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
6 years ago
# (buildpath/"src/github.com/miguelmota/cointop").install buildpath.children
system "go", "get", "-u", "github.com/miguelmota/cointop"
6 years ago
cd "src/github.com/miguelmota/cointop" do
6 years ago
system "go", "build", "-o", "#{bin}/cointop"
6 years ago
prefix.install_metafiles
6 years ago
end
end
test do
6 years ago
system "TERM=screen-256color #{bin}/cointop -test"
6 years ago
end
end