[-- Attachment #1: Type: text/plain, Size: 397 bytes --]
There is a new pull request by ericonr against master on the void-packages repository
https://github.com/ericonr/void-packages arduino
https://github.com/void-linux/void-packages/pull/23891
arduino-cli: update to 0.11.0.
This version added command line completions that must be generated at
build time.
A patch file from https://github.com/void-linux/void-packages/pull/23891.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-arduino-23891.patch --]
[-- Type: text/x-diff, Size: 2070 bytes --]
From 56207d26465a5d028b8134da420b3ff8f11e09d6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Tue, 28 Jul 2020 02:14:54 -0300
Subject: [PATCH] arduino-cli: update to 0.11.0.
This version added command line completions that must be generated at
build time.
---
srcpkgs/arduino-cli/template | 22 ++++++++++++++++++----
srcpkgs/arduino-cli/update | 1 -
2 files changed, 18 insertions(+), 5 deletions(-)
delete mode 100644 srcpkgs/arduino-cli/update
diff --git a/srcpkgs/arduino-cli/template b/srcpkgs/arduino-cli/template
index d35a00ee78c..fc67ce96a5b 100644
--- a/srcpkgs/arduino-cli/template
+++ b/srcpkgs/arduino-cli/template
@@ -1,17 +1,31 @@
# Template file for 'arduino-cli'
pkgname=arduino-cli
-version=0.10.0
-revision=2
+version=0.11.0
+revision=1
+build_helper=qemu
build_style=go
go_import_path=github.com/arduino/arduino-cli
short_desc="Arduino command line interface"
maintainer="Jasper Chan <jasperchan515@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/arduino/arduino-cli"
-distfiles="https://github.com/arduino/arduino-cli/archive/${version}.tar.gz"
-checksum=165347f8eb7d34c669ef3cee42bede9faffd5f0bb7ae0ece16c806a6230e8790
+distfiles="${homepage}/archive/${version}.tar.gz"
+checksum=5a9b7eec55c3ee7f54d8804fac00ceb78ad0697fd918f6fbae0bb61cb33d8b3e
case "$XBPS_TARGET_MACHINE" in
# the downloaded toolchains use glibc, this allows them to work on musl
*-musl) depends+=" gcompat" ;;
esac
+
+post_build() {
+ arduino_cli=$(find $GOPATH/bin -name arduino-cli)
+ vtargetrun $arduino_cli completion bash > arduino.bash
+ vtargetrun $arduino_cli completion fish > arduino.fish
+ vtargetrun $arduino_cli completion zsh > arduino.zsh
+}
+
+post_install() {
+ vcompletion arduino.bash bash
+ vcompletion arduino.fish fish
+ vcompletion arduino.zsh zsh
+}
diff --git a/srcpkgs/arduino-cli/update b/srcpkgs/arduino-cli/update
deleted file mode 100644
index 7f12d0915a2..00000000000
--- a/srcpkgs/arduino-cli/update
+++ /dev/null
@@ -1 +0,0 @@
-pattern="/archive/\K[\d.]+(?=)"