homebrew-core/Formula/archi-steam-farm.rb
2017-05-06 10:18:41 -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.3.1.4/ASF.zip"
version "2.3.1.4"
sha256 "73941584b97a8b4820a5c4587e033092873f520ff88dbe9b8da085e72b7525bf"
bottle do
cellar :any_skip_relocation
sha256 "7a2e792ce756de3ca77ae63d00073da56b7ba0b599f2583b8e286ba60be63c97" => :sierra
sha256 "0054489a26c12f9379ad9f79ac959c07e9b4a6d0a387e08400ad8cb978a602d8" => :el_capitan
sha256 "0054489a26c12f9379ad9f79ac959c07e9b4a6d0a387e08400ad8cb978a602d8" => :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