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.09.orig.tar.xz"
sha256 "cda1471d1bf5a9769017018504e3ebdde6efbac7f6a27af4a40189e66e506b58"
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: "99f406a9a8e0bd59ce46386dd5c88e6f99e6c3dabff32a461c22e64772591375"
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