OpenTyrian - vertical shooter.
This commit is contained in:
parent
d087f25361
commit
30bff2f380
1 changed files with 36 additions and 0 deletions
36
Formula/open-tyrian.rb
Normal file
36
Formula/open-tyrian.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue