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
parent
458c9820bd
commit
739b23389a
|
@ -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
|
Loading…
Reference in New Issue