class Snapraid < Formula desc "Backup program for disk arrays" homepage "http://snapraid.sourceforge.net/" url "https://github.com/amadvance/snapraid/releases/download/v10.0/snapraid-10.0.tar.gz" sha256 "f7dcf19480256fc2c1db9ab976aa12f786e76da6044cc397f0451524e8031ad6" head do url "https://github.com/amadvance/snapraid.git" depends_on "automake" => :build depends_on "autoconf" => :build end bottle do cellar :any_skip_relocation sha256 "ffa69724c9970b59d658a9c5dafd59b2cce7180219da4960de215dd106a20001" => :el_capitan sha256 "4cc74d39c187216544ebb319b1ed6537198456551725b8f15e5397be687854af" => :yosemite sha256 "bb60bddade2e2b5cfa7df974c7d8aabc1819c00ab2a98694c87d86ed9abbf804" => :mavericks end def install system "./autogen.sh" if build.head? system "./configure", "--prefix=#{prefix}" system "make", "install" end test do assert_match version.to_s, shell_output("#{bin}/snapraid --version") end end