35 lines
770 B
Ruby
35 lines
770 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.28.0/ckan.exe"
|
|
sha256 "2486d98e06c247a61a94e583c202b8a4c74a439de3ea271b769d041aa78d21cd"
|
|
license "MIT"
|
|
|
|
livecheck do
|
|
url "https://github.com/KSP-CKAN/CKAN/releases/latest"
|
|
regex(%r{href=.*?/tag/v?(\d+(?:\.\d+)+)["' >]}i)
|
|
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
|