bossa 1.9.1 (new formula)

* Add the BOSSA flash utility for Atmel SAM microprocessors
* bossa: depends on readline for linux build

Closes #113794.

Co-authored-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Michka Popoff <3406519+iMichka@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Fan Jiang 2022-10-22 15:17:33 -04:00 committed by BrewTestBot
parent 458c9820bd
commit 739b23389a
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 23 additions and 0 deletions

23
Formula/bossa.rb Normal file
View File

@ -0,0 +1,23 @@
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"
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