homebrew-core/Formula/archi-steam-farm.rb

32 lines
1,010 B
Ruby
Raw Normal View History

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.1.6.3/ASF.zip"
version "2.1.6.3"
sha256 "62671db765e06f959b007a97f9bd9ad2cb5521c849aef81d8a48f5d2cee52b5a"
2016-10-04 23:05:12 +00:00
bottle do
cellar :any_skip_relocation
2016-10-26 11:37:03 +00:00
sha256 "bcd7bfabc46251ab44e9d912185f2f782d4bfcf6125b6e68be2fc285061cc4ad" => :sierra
sha256 "bcd7bfabc46251ab44e9d912185f2f782d4bfcf6125b6e68be2fc285061cc4ad" => :el_capitan
sha256 "bcd7bfabc46251ab44e9d912185f2f782d4bfcf6125b6e68be2fc285061cc4ad" => :yosemite
2016-10-04 23:05:12 +00:00
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
test do
assert_match "ASF V#{version}", shell_output("#{bin}/asf --client")
end
end