class Vnu < Formula desc "Nu Markup Checker: command-line and server HTML validator" homepage "https://validator.github.io/validator/" url "https://github.com/validator/validator/releases/download/16.3.3/vnu.jar_16.3.3.zip" version "20160303" sha256 "45169d5999ce527355f5a629c4fba0a3d27bbe25d835f7f1cc67ef47759bb36e" bottle :unneeded def install libexec.install "vnu.jar" bin.write_jar_script libexec/"vnu.jar", "vnu" end test do (testpath/"index.html").write <<-EOS.undent hi EOS system bin/"vnu", testpath/"index.html" end end