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.29.2/ckan.exe"
|
|
sha256 "f0248b7795967010c44747b4fa4fc33d0a81b558a75973edaafb78c16b306d83"
|
|
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
|