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

31 lines
990 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.2/ASF.zip"
sha256 "b7670ae84d08b2512b823bc820870b14c8810297f5f526b5b785fde8ee6b67f6"
2016-10-04 23:05:12 +00:00
bottle do
cellar :any_skip_relocation
sha256 "3688dab74bde7418f71352ed30ccef036336351b660daf306567173f71997d55" => :sierra
sha256 "3688dab74bde7418f71352ed30ccef036336351b660daf306567173f71997d55" => :el_capitan
sha256 "3688dab74bde7418f71352ed30ccef036336351b660daf306567173f71997d55" => :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
test do
assert_match "ASF V#{version}", shell_output("#{bin}/asf --client")
end
end