2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-10 13:10:26 +00:00
cointop/cointop.rb

23 lines
715 B
Ruby
Raw Normal View History

2018-04-26 22:53:15 +00:00
class Cointop < Formula
2018-04-27 18:32:26 +00:00
desc "Interactive terminal based UI application for tracking cryptocurrencies"
2018-04-26 22:53:15 +00:00
homepage "https://cointop.sh"
2018-04-28 20:10:17 +00:00
url "https://github.com/miguelmota/cointop/archive/1.0.1.tar.gz"
sha256 "bb5450c734a2d0c54a1dc7d7f42be85eb2163c03e6d3dc1782d74b54a8cbfa69"
2018-04-28 00:23:29 +00:00
2018-04-26 22:53:15 +00:00
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
2018-04-30 22:44:09 +00:00
# (buildpath/"src/github.com/miguelmota/cointop").install buildpath.children
system "go", "get", "-u", "github.com/miguelmota/cointop"
2018-04-28 00:07:13 +00:00
cd "src/github.com/miguelmota/cointop" do
2018-04-27 19:09:34 +00:00
system "go", "build", "-o", "#{bin}/cointop"
2018-04-28 00:07:13 +00:00
prefix.install_metafiles
2018-04-26 22:53:15 +00:00
end
end
test do
2018-04-28 20:10:17 +00:00
system "TERM=screen-256color #{bin}/cointop -test"
2018-04-26 22:53:15 +00:00
end
end