class OsinfoDb < Formula desc "Libosinfo database files" homepage "https://libosinfo.org/" url "https://releases.pagure.org/libosinfo/osinfo-db-20190920.tar.xz" sha256 "c8e32e93079a85b7d8c79ba9bc1a21c2e0403612f454049476242a2529a67c8a" 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