25 lines
836 B
Ruby
25 lines
836 B
Ruby
class UsbIds < Formula
|
|
desc "Repository of vendor, device, subsystem and device class IDs used in USB devices"
|
|
homepage "http://www.linux-usb.org/usb-ids.html"
|
|
url "https://deb.debian.org/debian/pool/main/u/usb.ids/usb.ids_2022.05.20.orig.tar.xz"
|
|
sha256 "e78e3d4200bd3165c46450f5416fa7a93b35ecc11670b87c9d687de479225b6f"
|
|
license any_of: ["GPL-2.0-or-later", "BSD-3-Clause"]
|
|
|
|
livecheck do
|
|
url "https://deb.debian.org/debian/pool/main/u/usb.ids/"
|
|
regex(/href=.*?usb\.ids[._-]v?(\d+(?:\.\d+)+)\.orig\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "3a244b475632d3f94cf4197b3dee71d1fd685e9c1bfaa8843e237a1d3f31a066"
|
|
end
|
|
|
|
def install
|
|
(share/"misc").install "usb.ids"
|
|
end
|
|
|
|
test do
|
|
assert_match "Version: #{version}", File.read(share/"misc/usb.ids", encoding: "ISO-8859-1")
|
|
end
|
|
end
|