23 lines
546 B
Ruby
23 lines
546 B
Ruby
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.6/ckan.exe", :using => :nounzip
|
|
sha256 "72a32a7e91fa73e7d7da81f8d3ab7cfb58897c2aa4caded0a57bf1dcc37f537e"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "mono"
|
|
|
|
def install
|
|
(libexec/"bin").install "ckan.exe"
|
|
(bin/"ckan").write <<~EOS
|
|
#!/bin/sh
|
|
exec mono "#{libexec}/bin/ckan.exe" "$@"
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system bin/"ckan", "version"
|
|
end
|
|
end
|