aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/teensy_loader_cli.rb
blob: 6b01dd5c027d4839110b3937779c16832f904415 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require "formula"

class TeensyLoaderCli < Formula
  homepage "https://www.pjrc.com/teensy/loader_cli.html"
  url "https://www.pjrc.com/teensy/teensy_loader_cli.2.1.zip"
  sha1 "041459720e733f78ba4e6a14abdbaa8bf04eb007"

  def install
    ENV['OS'] = 'MACOSX'
    ENV['SDK'] = MacOS.sdk_path || "/"
    system "make"
    bin.install "teensy_loader_cli"
  end

  test do
    assert `#{bin}/teensy_loader_cli 2>&1`.include?('<MCU> = atmega32u4 | at90usb162 | at90usb646 | at90usb1286')
  end
end