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

class AdobeAirSdk < Formula
  url 'http://airdownload.adobe.com/air/mac/download/3.1/AdobeAIRSDK.tbz2'
  homepage 'http://www.adobe.com/products/air/sdk/'
  md5 'f2137a34888ce71574da87e0cc3b7b06'
  version '3.1'

  def startup_script name
    <<-EOS.undent
      #!/bin/bash
      exec #{libexec}/bin/#{name} $@
    EOS
  end

  def install
    libexec.install Dir['*']

    bin.mkpath
    %w[adl adt].each do |tool|
      (bin+tool).write startup_script(tool)
    end
  end
end