homebrew-core/Formula/ckan.rb

37 lines
810 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.31.0/ckan.exe"
sha256 "f939b56905226d1367d637dec28c0e4c11edd4e9e024a0fe25e87d99e8346310"
license "MIT"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 cellar: :any_skip_relocation, all: "abde3768457424230138bf83635fd6ae533ef0a7003b33724f672467675982bb"
end
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