Skip to content

Commit

Permalink
Add: arduino-langauge-server (#2774)
Browse files Browse the repository at this point in the history
* package arduino-cli

* package arduino-lint

* remove old files

* package rpi-update

* remove old files

* exclusive arch in hcl

* package arduino-language-server

* remove old files

* No debug package

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

---------

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
(cherry picked from commit 6890a3d)

Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
  • Loading branch information
raboneko and Owen-sz authored Dec 28, 2024
1 parent b44f3dd commit 8f0a65a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/tools/arduino-language-server/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "arduino-language-server.spec"
}
}
34 changes: 34 additions & 0 deletions anda/tools/arduino-language-server/arduino-language-server.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
%define debug_package %nil

Name: arduino-language-server
Version: 0.7.6
Release: 1%?dist
Summary: Arduino command line tool.
License: AGPLv3
Packager: Owen Zimmerman <owen@fyralabs.com>
Url: https://github.com/arduino/arduino-language-server
Source0: %url/archive/refs/tags/%version.tar.gz
BuildRequires: golang git go-rpm-macros anda-srpm-macros clang arduino-cli

%description
%summary

%prep
%autosetup -n arduino-language-server-%version

%build
mkdir -p bin
%go_build_online

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

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

%changelog
* Fri Dec 27 2024 Owen Zimmerman <owen@fyralabs.com>
- Package arduino-language-server
1 change: 1 addition & 0 deletions anda/tools/arduino-language-server/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("arduino/arduino-language-server"));

0 comments on commit 8f0a65a

Please sign in to comment.