Skip to content

Commit

Permalink
bossa: add 1.9.1 bottle.
Browse files Browse the repository at this point in the history
  • Loading branch information
gromgit committed Jan 16, 2023
1 parent 177ccbd commit b2f744f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Formula/bossa.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class Bossa < Formula
desc "Flash utility for Atmel SAM microcontrollers"
homepage "https://github.com/shumatech/BOSSA"
url "https://github.com/shumatech/BOSSA/archive/refs/tags/1.9.1.tar.gz"
sha256 "ca650455dfa36cbd029010167347525bea424717a71a691381c0811591c93e72"
license "BSD-3-Clause"
head "https://github.com/shumatech/BOSSA.git", branch: "master"

bottle do
root_url "https://github.com/gromgit/homebrew-core-mojave/releases/download/bossa"
sha256 cellar: :any_skip_relocation, mojave: "22beb84e21edd63ce1c701ee0af9371fcf5ec4412be15f83720e9c24f5d86551"
end

on_linux do
depends_on "readline"
end

def install
system "make", "bin/bossac", "bin/bossash"
bin.install "bin/bossac"
bin.install "bin/bossash"
end

test do
expected_output = /^No device found.*/
assert_match expected_output, shell_output("#{bin}/bossac -i 2>&1", 1)
end
end

0 comments on commit b2f744f

Please sign in to comment.