homebrew-core/Formula/usb.ids.rb

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.12.15.orig.tar.xz"
sha256 "a83888ad8af389e479c81dcb4b4268893ef102880618bf270c155b2bc6b5304f"
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: "9340d46abb7d25f4d2e6d6c44301589aa8c07639b59b63d5d0d15a153ec4d60e"
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