Skip to content

Commit

Permalink
brogue 1.7.2
Browse files Browse the repository at this point in the history
Closes #63.

Signed-off-by: Misty De Meo <[email protected]>
  • Loading branch information
bfontaine authored and mistydemeo committed Jul 10, 2013
1 parent 5363eaa commit 5c594dc
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions brogue.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
require 'formula'

class Brogue < Formula
homepage 'https://sites.google.com/site/broguegame/'

# The OS X version doesn't contain a Makefile, so we
# need to download the Linux version
url 'https://sites.google.com/site/broguegame/brogue-linux-1.7.2.tar.gz'
sha1 '31bde0c5922cca803d4ce4b7fa916247ad444401'

def install
doc.install 'Readme.rtf' => 'README.rtf'
doc.install 'agpl.txt' => 'COPYING'

system "make", "clean"
system "make", "curses"

# The files are installed in libexec
# and the provided `brogue` shell script,
# which is just a convenient way to launch the game,
# is placed in the `bin` directory.
inreplace 'brogue', /`dirname \$0`\/bin$/, libexec
bin.install 'brogue'
libexec.install 'bin/brogue'
libexec.install 'bin/keymap'
end

def test
system "#{bin}/brogue", "--version"
end
end

0 comments on commit 5c594dc

Please sign in to comment.