aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/unnethack.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/unnethack.rb b/Library/Formula/unnethack.rb
new file mode 100644
index 000000000..818713b18
--- /dev/null
+++ b/Library/Formula/unnethack.rb
@@ -0,0 +1,18 @@
+require 'formula'
+
+class Unnethack < Formula
+ url 'https://downloads.sourceforge.net/project/unnethack/unnethack/3.6.1/unnethack-3.6.1-20120205.tar.gz'
+ homepage 'http://sourceforge.net/apps/trac/unnethack/'
+ md5 '675c00d776e513d5aedaf11f071af569'
+
+ skip_clean "var/unnethack/bones"
+ skip_clean "var/unnethack/level"
+ skip_clean "var/unnethack/saves"
+
+ def install
+ system "./configure", "--prefix=#{prefix}",
+ "--with-owner=#{`id -un`}", "--with-group=staff",
+ "--enable-wizmode=#{`id -un`}"
+ system "make install"
+ end
+end