homebrew-core/Formula/ckan.rb

23 lines
553 B
Ruby
Raw Normal View History

2017-02-06 10:26:50 +00:00
class Ckan < Formula
desc "The Comprehensive Kerbal Archive Network"
homepage "https://github.com/KSP-CKAN/CKAN/"
2017-05-30 08:49:41 +00:00
url "https://github.com/KSP-CKAN/CKAN/releases/download/v1.22.3/ckan.exe", :using => :nounzip
sha256 "8b02bb62f9786a9f3a764594d4a3297c73bc5d476099afcf48a4fa14b56a1204"
2017-02-06 10:26:50 +00:00
bottle :unneeded
depends_on "mono"
def install
(libexec/"bin").install "ckan.exe"
(bin/"ckan").write <<-EOS.undent
#!/bin/sh
exec mono "#{libexec}/bin/ckan.exe" "$@"
EOS
end
test do
system bin/"ckan", "version"
end
end