homebrew-core/Formula/archi-steam-farm.rb
2017-03-21 11:50:02 -07:00

36 lines
1.1 KiB
Ruby

class ArchiSteamFarm < Formula
desc "ASF is a C# application that allows you to farm steam cards"
homepage "https://github.com/JustArchi/ArchiSteamFarm"
url "https://github.com/JustArchi/ArchiSteamFarm/releases/download/2.2.3.7/ASF.zip"
version "2.2.3.7"
sha256 "69b113821dd618373b8c34a1832fa01d7399be44c3580a4723647586b27d245c"
bottle do
cellar :any_skip_relocation
sha256 "cac26b71eeaacf67336cc9e5c709c37df3cb43eef05e862c4898e5abd9eb6821" => :sierra
sha256 "cac26b71eeaacf67336cc9e5c709c37df3cb43eef05e862c4898e5abd9eb6821" => :el_capitan
sha256 "cac26b71eeaacf67336cc9e5c709c37df3cb43eef05e862c4898e5abd9eb6821" => :yosemite
end
depends_on "mono"
def install
libexec.install "ASF.exe"
(bin/"asf").write <<-EOS.undent
#!/bin/bash
mono #{libexec}/ASF.exe "$@"
EOS
etc.install "config" => "asf"
libexec.install_symlink etc/"asf" => "config"
end
def caveats; <<-EOS.undent
Config: #{etc}/asf/
EOS
end
test do
assert_match "ASF V#{version}", shell_output("#{bin}/asf --client")
end
end