Skip to content

Commit

Permalink
package arduino-cli (#2579)
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen-sz authored Dec 8, 2024
1 parent b746268 commit 0db63a8
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/tools/arduino-cli/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "arduino-cli.spec"
}
}
35 changes: 35 additions & 0 deletions anda/tools/arduino-cli/arduino-cli.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
%define _build_shell /bin/bash
%define debug_package %nil

Name: arduino-cli
Version: 1.1.1
Release: 1%?dist
Summary: Arduino command line tool.
License: GPLv3
Packager: Owen Zimmerman <[email protected]>
Url: https://github.com/arduino/arduino-cli
Source0: %url/archive/refs/tags/v%version.tar.gz
BuildRequires: golang git go-rpm-macros anda-srpm-macros

%description
%summary

%prep
%autosetup -n arduino-cli-%version

%build
mkdir -p bin
%go_build_online

%install
mkdir -p %{buildroot}%{_bindir}
install -Dm 755 build/bin/arduino-cli %buildroot%{_bindir}/arduino-cli

%files
%license LICENSE.txt
%doc README.md
%{_bindir}/arduino-cli

%changelog
* Thu Dec 5 2024 Owen Zimmerman <[email protected]>
- Package arduino-cli
1 change: 1 addition & 0 deletions anda/tools/arduino-cli/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("arduino/arduino-cli"));

0 comments on commit 0db63a8

Please sign in to comment.