homebrew-virt-manager/osinfo-db.rb
2019-09-01 16:47:37 -04:00

20 lines
524 B
Ruby

class OsinfoDb < Formula
desc "Libosinfo database files"
homepage "https://libosinfo.org/"
url "https://releases.pagure.org/libosinfo/osinfo-db-20190805.tar.xz"
sha256 "7da4477508cb2fb03da90123bafcc2ab1ff6c2d8f911a590cad9a202eb0448d1"
depends_on "osinfo-db-tools" => :build
def install
system "osinfo-db-import", "--local", cached_download
# Copy the archive into the prefix to avoid empty installation error
cp_r "./", prefix
end
test do
system "osinfo-db-validate", "--local"
end
end