homebrew-core/Formula/gpcslots2.rb

25 lines
652 B
Ruby

class Gpcslots2 < Formula
desc "Casino text-console game"
homepage "https://sourceforge.net/projects/gpcslots2/"
url "https://downloads.sourceforge.net/project/gpcslots2/gpcslots2_0-4-5b"
version "0.4.5b"
sha256 "4daf5b6e5a23fe6cd121fe1250f10ad9f3b936bd536d475ec585f57998736f55"
livecheck do
url :stable
regex(%r{url=.*?/gpcslots2[._-]v?(\d+(?:[._-]\d+)+[a-z]?)}i)
end
bottle do
sha256 cellar: :any_skip_relocation, all: "4eb93c0df897b9c27e4df6c4238c2a70e6a983a7081a124f2bf59a575b2afddc"
end
def install
bin.install "gpcslots2_0-4-5b" => "gpcslots2"
end
test do
system "#{bin}/gpcslots2", "-h"
end
end