homebrew-core/Formula/usb.ids.rb

23 lines
724 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_2021.01.29.orig.tar.xz"
sha256 "1c56660f3fe0d362469b5fae2e4ab86fc035911a2581faf4e7d5affb3de9f1af"
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 :unneeded
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