35 lines
698 B
Ruby
35 lines
698 B
Ruby
class Ckan < Formula
|
|
desc "Comprehensive Kerbal Archive Network"
|
|
homepage "https://github.com/KSP-CKAN/CKAN/"
|
|
url "https://github.com/KSP-CKAN/CKAN/releases/download/v1.30.0/ckan.exe"
|
|
sha256 "c22879351cde3b2e16317437c95f56fe6db1ec1d82e53d05efc4dba6c9e08a04"
|
|
license "MIT"
|
|
|
|
livecheck do
|
|
url :stable
|
|
strategy :github_latest
|
|
end
|
|
|
|
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
|
|
|
|
def caveats
|
|
<<~EOS
|
|
To use the CKAN GUI, install the ckan-app cask.
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system bin/"ckan", "version"
|
|
end
|
|
end
|