forked from ziz/homebrew-games
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #63. Signed-off-by: Misty De Meo <[email protected]>
- Loading branch information
1 parent
5363eaa
commit 5c594dc
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |