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-20220830.tar.xz"
sha256 "8111643d90deab838db7f213f154bef2e057350a9c834245ee01dd64433baafb"
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: "e57a914c5d0d8ec0288a316f31200a90a5465a9bc5282e5f3138e957b8629109"
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