homebrew-core/Formula/inxi.rb

31 lines
778 B
Ruby

class Inxi < Formula
desc "Full featured CLI system information tool"
homepage "https://smxi.org/docs/inxi.htm"
url "https://github.com/smxi/inxi/archive/3.1.04-1.tar.gz"
version "3.1.04"
sha256 "9661ee7120a5bdc5b7cd0b36a56aa18924283490e5430216d2ed8dc685cfc68c"
license "GPL-3.0"
head "https://github.com/smxi/inxi.git"
bottle :unneeded
def install
bin.install "inxi"
man1.install "inxi.1"
["LICENSE.txt", "README.txt", "inxi.changelog"].each do |file|
prefix.install file
end
end
test do
inxi_output = shell_output("#{bin}/inxi")
uname = shell_output("uname").strip
assert_match uname.to_str, inxi_output.to_s
uname_r = shell_output("uname -r").strip
assert_match uname_r.to_str, inxi_output.to_s
end
end