-
Notifications
You must be signed in to change notification settings - Fork 457
/
angband.rb
37 lines (33 loc) · 1.34 KB
/
angband.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class Angband < Formula
desc "Dungeon exploration game"
homepage "https://rephial.org/"
url "https://rephial.org/downloads/4.2/angband-4.2.1.tar.gz"
sha256 "acd735c9d46bf86ee14337c71c56f743ad13ec2a95d62e7115604621e7560d0f"
license "GPL-2.0"
head "https://github.com/angband/angband.git"
bottle do
sha256 "ed5e9c7b858074dbb7bea12199e8a326cd61e0335fb268e0d88894609995c88d" => :big_sur
sha256 "b59aedacab5c3588719bfc1ebc17b936ffe5105ed8e7edd19caccc340a81271f" => :catalina
sha256 "96f6f2e31023c69aba44c4ccc40acf652d5a76bbd1b9cd6a7ebead33a0a2161e" => :mojave
sha256 "95463908fbefe4988a9ab3dcc031cd1c7d6767ed6557d1baca813446e5ca6b9c" => :high_sierra
end
depends_on "autoconf" => :build
depends_on "automake" => :build
def install
ENV["NCURSES_CONFIG"] = "#{MacOS.sdk_path}/usr/bin/ncurses5.4-config"
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}",
"--bindir=#{bin}",
"--libdir=#{libexec}",
"--enable-curses",
"--disable-ncursestest",
"--disable-sdltest",
"--disable-x11",
"--with-ncurses-prefix=#{MacOS.sdk_path}/usr"
system "make"
system "make", "install"
end
test do
system bin/"angband", "--help"
end
end