homebrew-core/Formula/tty-solitaire.rb

24 lines
954 B
Ruby

class TtySolitaire < Formula
desc "Ncurses-based klondike solitaire game"
homepage "https://github.com/mpereira/tty-solitaire"
url "https://github.com/mpereira/tty-solitaire/archive/v1.3.1.tar.gz"
sha256 "f2b80c8d5317e67db43c1dbf3b0f5f3dfea5e826c18744562615f1b1536ae433"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "91eea2f4dd14f6a81e3b3cc44fdb72916e1ae2dec5075b85136d5a224cc8d655"
sha256 cellar: :any_skip_relocation, big_sur: "ca5bfa5041e8870b14c3ba92e73ad2766c8edc8cf139f03e9d983fc8d9a8976f"
sha256 cellar: :any_skip_relocation, catalina: "b315a94abfcf02186d94a6d4e78c71fec3538a65c5cc885df5dd9245efbca51c"
sha256 cellar: :any_skip_relocation, mojave: "ae38452ea77edde4a1c62085e6f1703cce1f91f04f869783761fa71399c03bf5"
end
def install
system "make"
system "make", "install", "PREFIX=#{prefix}"
end
test do
system "#{bin}/ttysolitaire", "-h"
end
end