b4b8ffc961
Closes #5322. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
21 lines
721 B
Ruby
21 lines
721 B
Ruby
class Rainbarf < Formula
|
|
desc "CPU/RAM/battery stats chart bar for tmux (and GNU screen)"
|
|
homepage "https://github.com/creaktive/rainbarf"
|
|
url "https://github.com/creaktive/rainbarf/archive/v1.4.tar.gz"
|
|
sha256 "066579c0805616075c49c705d1431fb4b7c94a08ef2b27dd8846bd3569a188a4"
|
|
head "https://github.com/creaktive/rainbarf.git"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
system "pod2man", "rainbarf", "rainbarf.1"
|
|
man1.install "rainbarf.1"
|
|
bin.install "rainbarf"
|
|
end
|
|
|
|
test do
|
|
# Avoid "Use of uninitialized value $battery" and sandbox violation
|
|
# Reported 5 Sep 2016 https://github.com/creaktive/rainbarf/issues/30
|
|
assert_match version.to_s, shell_output("#{bin}/rainbarf --help", 1)
|
|
end
|
|
end
|