homebrew-core/Formula/osinfo-db.rb

27 lines
799 B
Ruby

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-20211216.tar.xz"
sha256 "09ece7b0e521330e31d12a59171e34f097181a7cbbcd6f8cd49f928923bb1082"
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: "a2bf5894b12274370a5b910403d2d56e77c84cfe166040ad42215a101c690f7f"
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