class OsinfoDb < Formula desc "Osinfo database of operating systems for virtualization provisioning tools" homepage "https://libosinfo.org/" url "https://releases.pagure.org/libosinfo/osinfo-db-20220727.tar.xz" sha256 "2291e5234ed899a830c36f2b4056ff5e76235f4ba07b593421f4865290634d5e" license "GPL-2.0-or-later" livecheck do url "https://releases.pagure.org/libosinfo/?C=M&O=D" regex(/href=.*?osinfo-db[._-]v?(\d+(?:\.\d+)*)\.t/i) end bottle do sha256 cellar: :any_skip_relocation, all: "01a3d5d05c3964eeb80922d823ee89c4c26d6d3b65a39d1e51f78f3a35aa49c1" end depends_on "osinfo-db-tools" => [:build, :test] def install system "osinfo-db-import", "--dir=#{share}/osinfo", cached_download end test do system "osinfo-db-validate", "--system" end end