class Unyaffs < Formula desc "Extract files from a YAFFS2 filesystem image" homepage "https://github.com/ehlers/unyaffs" url "https://github.com/ehlers/unyaffs/archive/0.9.7.tar.gz" sha256 "099ee9e51046b83fe8555d7a6284f6fe4fbae96be91404f770443d8129bd8775" head "https://github.com/ehlers/unyaffs.git" bottle do cellar :any_skip_relocation sha256 "a5782b3ff1d562df3fc65956293b9fe51e8d75f1c746b0fd62e1b6dd99573ef5" => :high_sierra sha256 "75da4c47cc7a56283d88fc1438a8a91a4d3d4c0e40c3a6e6f228ec69de33c205" => :sierra sha256 "fe8c38e3c09223e9cea5b052a4774b7e502b0a057101c788629727cbf942b786" => :el_capitan end def install system "make" bin.install "unyaffs" end test do assert_match version.to_s, shell_output("#{bin}/unyaffs -V") end end