homebrew-core/Formula/nudoku.rb

36 lines
1.3 KiB
Ruby

class Nudoku < Formula
desc "Ncurses based sudoku game"
homepage "https://jubalh.github.io/nudoku/"
url "https://github.com/jubalh/nudoku/archive/2.1.0.tar.gz"
sha256 "eeff7f3adea5bfe7b88bf7683d68e9a597aabd1442d1621f21760c746400b924"
license "GPL-3.0-or-later"
head "https://github.com/jubalh/nudoku.git"
bottle do
sha256 arm64_big_sur: "daa1278f79f9fdf5cd8780ba68d3bf89982728c1ddf636f89475e89b14bd9c64"
sha256 big_sur: "ec43523a92bb16fadd4ab7fe3f9189cb13849fc3919bf4525b9074a471453745"
sha256 catalina: "e6aa92aabc32164b2cc69d55d4a243f6aafdd6d6a109a40339d6546548153174"
sha256 mojave: "3afc049f852d205bff4b674e751fb1db83d73ab82ba15e5f38a1ba9c33ffd2e5"
sha256 x86_64_linux: "a866bdb43994c69ce7aa6dadc3b50446df14c1daaf4df89bbc095236c80fac07"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkg-config" => :build
depends_on "gettext"
uses_from_macos "ncurses"
def install
system "autoreconf", "-fiv"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match "nudoku version #{version}", shell_output("#{bin}/nudoku -v")
end
end