homebrew-core/Formula/allureofthestars.rb

35 lines
1.5 KiB
Ruby

class Allureofthestars < Formula
desc "Near-future Sci-Fi roguelike and tactical squad combat game"
homepage "https://www.allureofthestars.com/"
url "https://hackage.haskell.org/package/Allure-0.10.2.0/Allure-0.10.2.0.tar.gz"
sha256 "fcb9f38ea543d3277fa90eee004f7624d1168bf7f2c17902cda1870293b7c2f4"
license all_of: ["AGPL-3.0-or-later", "GPL-2.0-or-later", "OFL-1.1", "MIT", :cannot_represent]
head "https://github.com/AllureOfTheStars/Allure.git"
bottle do
sha256 big_sur: "08e20dcd7cfc1614eccd6379f87eb90033744e7cd4b61fe16f74a7ac398dc024"
sha256 catalina: "f91e6b2d32786a3a3d9c8158d25bcdcc237522bf20c897db126c4637214719b4"
sha256 mojave: "74bba1ecc12c907719e67be93e7ec10493684bb23f4f1c93c1325a12c9b36c2d"
end
depends_on "cabal-install" => :build
depends_on "pkg-config" => :build
depends_on "ghc"
depends_on "gmp"
depends_on "sdl2_ttf"
def install
system "cabal", "v2-update"
system "cabal", "--store-dir=#{libexec}", "v2-install", *std_cabal_v2_args
end
test do
assert_equal "",
shell_output("#{bin}/Allure --dbgMsgSer --dbgMsgCli --logPriority 0 --newGame 3 --maxFps 100000 " \
"--stopAfterFrames 50 --automateAll --keepAutomated --gameMode battle " \
"--setDungeonRng \"SMGen 7 7\" --setMainRng \"SMGen 7 7\"")
assert_equal "", (testpath/".Allure/stderr.txt").read
assert_match "Client FactionId 1 closed frontend.", (testpath/".Allure/stdout.txt").read
end
end