Skip to content

Commit

Permalink
gotop 3.0.0 (new formula)
Browse files Browse the repository at this point in the history
Closes #49174.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
  • Loading branch information
dawidd6 authored and chenrui333 committed Jan 26, 2020
1 parent 049e840 commit 08ccac0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Formula/gotop.rb
@@ -0,0 +1,16 @@
class Gotop < Formula
desc "Terminal based graphical activity monitor inspired by gtop and vtop"
homepage "https://github.com/cjbassi/gotop"
url "https://github.com/cjbassi/gotop/archive/3.0.0.tar.gz"
sha256 "d5147080bb6057f0bf0900b38438e89aa066959c845bdd4c84a9c9fe478b176f"

depends_on "go" => :build

def install
system "go", "build", "-mod=vendor", "-ldflags", "-s -w", "-trimpath", "-o", bin/name
end

test do
assert_equal version.to_s, shell_output("#{bin}/gotop --version").chomp
end
end

0 comments on commit 08ccac0

Please sign in to comment.