class Ckan < Formula desc "The Comprehensive Kerbal Archive Network" homepage "https://github.com/KSP-CKAN/CKAN/" url "https://github.com/KSP-CKAN/CKAN/releases/download/v1.22.3/ckan.exe", :using => :nounzip version "1.22.3" sha256 "8b02bb62f9786a9f3a764594d4a3297c73bc5d476099afcf48a4fa14b56a1204" bottle :unneeded depends_on "mono" def install (libexec/"bin").install "ckan.exe" (bin/"ckan").write <<-EOS.undent #!/bin/sh exec mono "#{libexec}/bin/ckan.exe" "$@" EOS end test do system bin/"ckan", "version" end end