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.7/ASF.zip"
version "2.1.6.7"
sha256 "b09ccbe5df66bf7b771476f84ff760e2fb8f614cc3bb5b29c4bee6cdd3d7c6c4"
2016-10-04 23:05:12 +00:00
bottle do
cellar :any_skip_relocation
sha256 "b0bffa6963171f4a360297168ec01593628b6ab1750ee115b76e28ea27238f8a" => :sierra
sha256 "b0bffa6963171f4a360297168ec01593628b6ab1750ee115b76e28ea27238f8a" => :el_capitan
sha256 "b0bffa6963171f4a360297168ec01593628b6ab1750ee115b76e28ea27238f8a" => :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