From 4806f7d8a8c1aacfb57ea794e2e80bb85d31e9b9 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 22 Nov 2009 21:30:48 -0800 Subject: OpenTyrian - vertical shooter. --- Library/Formula/open-tyrian.rb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Library/Formula/open-tyrian.rb (limited to 'Library/Formula') 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 '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 -- cgit v1.2.3