From 99ba9f22c6950688ac3bdee73ca4fa3015e91e5d Mon Sep 17 00:00:00 2001 From: Oleg Kostyaev Date: Wed, 5 Oct 2016 01:37:43 +0300 Subject: [PATCH] archi-steam-farm 2.1.5 (new formula) Closes #5601. Signed-off-by: Mike McQuaid --- Formula/archi-steam-farm.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/archi-steam-farm.rb diff --git a/Formula/archi-steam-farm.rb b/Formula/archi-steam-farm.rb new file mode 100644 index 0000000000..c644118a5d --- /dev/null +++ b/Formula/archi-steam-farm.rb @@ -0,0 +1,23 @@ +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.5.4/ASF.zip" + sha256 "244f2e213927ad4512036a30bff201d94db1129a9f8650e39bdbf22a0f4951f8" + + 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 V2.1.5.4", shell_output("#{bin}/asf --client") + end +end