homebrew-core/Formula/ckan.rb
Caleb Xu af81fd1ca5 ckan 1.26.4
Closes #43193.

Signed-off-by: Jan Viljanen <527069+javian@users.noreply.github.com>
2019-08-17 12:23:42 +02:00

27 lines
613 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.26.4/ckan.exe"
sha256 "18e294ff3f0301a95d467d7ee62349c2a8c5fc38d8fa6a9fa3d37e8cc6c8bfd2"
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