24 lines
572 B
Ruby
24 lines
572 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.1/ckan.exe", :using => :nounzip
|
||
|
version "1.22.1"
|
||
|
sha256 "171eda7109902aaca387fac09b5d2815bd3e23ed76cc30223c6ec7095a600228"
|
||
|
|
||
|
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
|