2018-08-09 10:05:51 +00:00
|
|
|
class Lsusb < Formula
|
|
|
|
desc "List USB devices, just like the Linux lsusb command"
|
|
|
|
homepage "https://github.com/jlhonora/lsusb"
|
|
|
|
url "https://github.com/jlhonora/lsusb/releases/download/1.0/lsusb-1.0.tar.gz"
|
|
|
|
sha256 "68cfa4a820360ecf3bbd2a24a58f287d41f66c62ada99468c36d5bf33f9a3b94"
|
|
|
|
|
2018-08-09 10:13:37 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2018-08-21 01:13:32 +00:00
|
|
|
sha256 "4f2f4f45cb6df2d5262bb823e02f750e7e5b4f117dca8a41fc6956435a277cb9" => :mojave
|
2018-08-09 10:13:37 +00:00
|
|
|
sha256 "e696db36d09169064b3e97852d07464125e5bc6e400cb2a4cc186e6aa606574a" => :high_sierra
|
|
|
|
sha256 "e696db36d09169064b3e97852d07464125e5bc6e400cb2a4cc186e6aa606574a" => :sierra
|
|
|
|
sha256 "e696db36d09169064b3e97852d07464125e5bc6e400cb2a4cc186e6aa606574a" => :el_capitan
|
|
|
|
end
|
|
|
|
|
2018-08-09 10:05:51 +00:00
|
|
|
def install
|
|
|
|
bin.install "lsusb"
|
|
|
|
man8.install "man/lsusb.8"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
output = shell_output("#{bin}/lsusb")
|
|
|
|
assert_match /^Bus [0-9]+ Device [0-9]+:/, output
|
|
|
|
end
|
|
|
|
end
|