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-20210903.tar.xz"
sha256 "30e7d3f21bc0d3a24fd23da29f6364afe896d7c9e2dfb39f0999ffc6b7730834"
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: "9231b01d46c03e561f0e9233c46960a9fe255d8696e7b1b48e13c1b39bfe42bb"
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