class Svgcleaner < Formula desc "Cleans your SVG files by removing unnecessary data" homepage "https://github.com/RazrFalcon/svgcleaner" url "https://github.com/RazrFalcon/svgcleaner/archive/v0.9.4.tar.gz" sha256 "35a180e79fecde99a736ef1cce2225362bcfedd431d58a8b0b84d7f35e9a70c7" head "https://github.com/RazrFalcon/svgcleaner.git" bottle do sha256 "81305592400f38413a55a9440da21dedb2e22b0ded7b8373f9e0d5d395e8f609" => :high_sierra sha256 "0506b4160a81a8569be2509b5bea3849ee49f69c2c31bc377c6aeeafc7d438d9" => :sierra sha256 "8691e45c864d3ae5a7b313561be03686952b0b1b2b4527f7dfd68f101e3478ac" => :el_capitan end depends_on "rust" => :build def install system "cargo", "build", "--release" bin.install "target/release/svgcleaner" end test do (testpath/"in.svg").write <<~EOS EOS system "#{bin}/svgcleaner", "in.svg", "out.svg" end end