homebrew-virt-manager/osinfo-db.rb
2019-01-26 16:58:02 -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-20190120.tar.xz"
sha256 "c14c891b6f1a9075506cb72eabdab0358aafaf5deb41e5ee09deb1481fa8612e"
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