diff options
| author | Adam Vandenberg | 2009-11-22 21:30:48 -0800 |
|---|---|---|
| committer | Max Howell | 2009-12-12 16:24:16 +0000 |
| commit | 4806f7d8a8c1aacfb57ea794e2e80bb85d31e9b9 (patch) | |
| tree | 31f47a848e6395dd3014586587ceb8fd12b6dbb9 /Library/Formula | |
| parent | b9819b9161d0628e504f444fdbdf0597a64ad724 (diff) | |
| download | homebrew-4806f7d8a8c1aacfb57ea794e2e80bb85d31e9b9.tar.bz2 | |
OpenTyrian - vertical shooter.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/open-tyrian.rb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/Formula/open-tyrian.rb b/Library/Formula/open-tyrian.rb new file mode 100644 index 000000000..a2966540c --- /dev/null +++ b/Library/Formula/open-tyrian.rb @@ -0,0 +1,36 @@ +require 'formula' + +class OpenTyrianData <Formula + url 'http://sites.google.com/a/camanis.net/opentyrian/tyrian/tyrian21.zip' + md5 '2a3b206a6de25ed4b771af073f8ca904' +end + +class OpenTyrian <Formula + head 'http://opentyrian.googlecode.com/hg/', :revision => '9ddcd06e48' + homepage 'http://code.google.com/p/opentyrian/' + version 'trunk' + + depends_on 'sdl' + depends_on 'sdl_net' + + def install + d = libexec + OpenTyrianData.new.brew { d.install Dir['*'] } + + system "make release" + libexec.install "opentyrian" + # Use a startup script to find the game data + (bin+'opentyrian').write startup_script + end + + def startup_script + return <<-END +#!/bin/bash +#{libexec}/opentyrian --data=#{libexec} $* +END + end + + def caveats + "Save games will be put in ~/.opentyrian" + end +end |
