aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dwarf-fortress.rb
blob: 3a7327fdeca1489178722c249b273c5d862d8773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class DwarfFortress < Formula
  url 'http://www.bay12games.com/dwarves/df_34_05_osx.tar.bz2'
  homepage 'http://www.bay12games.com/dwarves/'
  md5 '470dd5b1f75bdc2f567a10127b3708bf'
  version '0.34.05'

  def script; <<-EOS.undent
    #!/bin/sh
    # Dwarf Fortress wrapper script
    exec #{prefix}/df
    EOS
  end

  def install
    (bin + 'dwarffortress').write script

    rm_rf 'sdl' # only contains a readme

    prefix.install Dir['*']
  end
end