homebrew-virt-manager/osinfo-db.rb
2019-03-16 14:03:46 -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-20190304.tar.xz"
sha256 "0e31c3f19f2f897dd2ba08d8656fe0bc4abc24f9c1558aff46bb9e9858cbbdb6"
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