2012-02-11 10:49:02 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Unnethack < Formula
|
|
|
|
homepage 'http://sourceforge.net/apps/trac/unnethack/'
|
2012-02-11 18:52:19 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/unnethack/unnethack/3.6.1/unnethack-3.6.1-20120205.tar.gz'
|
2012-02-11 10:49:02 +00:00
|
|
|
md5 '675c00d776e513d5aedaf11f071af569'
|
|
|
|
|
|
|
|
skip_clean "var/unnethack/bones"
|
|
|
|
skip_clean "var/unnethack/level"
|
|
|
|
skip_clean "var/unnethack/saves"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2012-02-11 18:52:19 +00:00
|
|
|
"--with-owner=#{`id -un`}", "--with-group=admin",
|
2012-02-11 10:49:02 +00:00
|
|
|
"--enable-wizmode=#{`id -un`}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|