homebrew-virt-manager/osinfo-db.rb
2020-01-18 11:45:59 -05: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-20191125.tar.xz"
sha256 "e8f4e8c3e3ee738191511a4549fc8e4895b501312f2a7d383d5bde72a76f5580"
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