diff --git a/Formula/svgcleaner.rb b/Formula/svgcleaner.rb new file mode 100644 index 0000000000..c46c364762 --- /dev/null +++ b/Formula/svgcleaner.rb @@ -0,0 +1,33 @@ +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.7.0.tar.gz" + sha256 "c0a2cc56c77486700c7229538d30e77b55fc9713e5f2e8660fea86053a7789c9" + head "https://github.com/RazrFalcon/svgcleaner.git" + + depends_on "rust" => :build + + def install + system "cargo", "build", "--release" + bin.install "target/release/svgcleaner" + end + + test do + (testpath/"in.svg").write <<-EOS.undent + + + + + EOS + system "#{bin}/svgcleaner", "in.svg", "out.svg" + end +end