Skip to content

Commit cdf88f3

Browse files
Efrat19fxcoudert
authored andcommitted
arduino-cli 0.5.0 (new formula)
Closes #44948. Signed-off-by: FX Coudert <[email protected]>
1 parent 54abd6c commit cdf88f3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Formula/arduino-cli.rb

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class ArduinoCli < Formula
2+
desc "Arduino command-line interface"
3+
homepage "https://github.com/arduino/arduino-cli"
4+
url "https://github.com/arduino/arduino-cli/archive/0.5.0.tar.gz"
5+
sha256 "17832841c36a46a8cdf1f03c29843ab805721a11df6f5f1bdd82e1df43304717"
6+
7+
depends_on "go" => :build
8+
9+
def install
10+
system "go", "build", "-o", bin/"arduino-cli"
11+
end
12+
13+
test do
14+
system "#{bin}/arduino-cli", "sketch", "new", "test_sketch"
15+
assert File.directory?("#{testpath}/Documents/Arduino/test_sketch")
16+
end
17+
end

0 commit comments

Comments
 (0)