diff --git a/anda/tools/arduino-language-server/anda.hcl b/anda/tools/arduino-language-server/anda.hcl new file mode 100644 index 0000000000..aceb1461be --- /dev/null +++ b/anda/tools/arduino-language-server/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "arduino-language-server.spec" + } +} \ No newline at end of file diff --git a/anda/tools/arduino-language-server/arduino-language-server.spec b/anda/tools/arduino-language-server/arduino-language-server.spec new file mode 100644 index 0000000000..382edf2333 --- /dev/null +++ b/anda/tools/arduino-language-server/arduino-language-server.spec @@ -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 +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 +- Package arduino-language-server diff --git a/anda/tools/arduino-language-server/update.rhai b/anda/tools/arduino-language-server/update.rhai new file mode 100644 index 0000000000..ecbb17c360 --- /dev/null +++ b/anda/tools/arduino-language-server/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("arduino/arduino-language-server")); \ No newline at end of file