mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
arduino-cli: update to 0.11.0.
This version added command line completions that must be generated at build time.
This commit is contained in:
parent
b76c9b5a86
commit
abc7148191
2 changed files with 18 additions and 5 deletions
|
@ -1,17 +1,31 @@
|
||||||
# Template file for 'arduino-cli'
|
# Template file for 'arduino-cli'
|
||||||
pkgname=arduino-cli
|
pkgname=arduino-cli
|
||||||
version=0.10.0
|
version=0.11.0
|
||||||
revision=2
|
revision=1
|
||||||
|
build_helper=qemu
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path=github.com/arduino/arduino-cli
|
go_import_path=github.com/arduino/arduino-cli
|
||||||
short_desc="Arduino command line interface"
|
short_desc="Arduino command line interface"
|
||||||
maintainer="Jasper Chan <jasperchan515@gmail.com>"
|
maintainer="Jasper Chan <jasperchan515@gmail.com>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
homepage="https://github.com/arduino/arduino-cli"
|
homepage="https://github.com/arduino/arduino-cli"
|
||||||
distfiles="https://github.com/arduino/arduino-cli/archive/${version}.tar.gz"
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
||||||
checksum=165347f8eb7d34c669ef3cee42bede9faffd5f0bb7ae0ece16c806a6230e8790
|
checksum=5a9b7eec55c3ee7f54d8804fac00ceb78ad0697fd918f6fbae0bb61cb33d8b3e
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
# the downloaded toolchains use glibc, this allows them to work on musl
|
# the downloaded toolchains use glibc, this allows them to work on musl
|
||||||
*-musl) depends+=" gcompat" ;;
|
*-musl) depends+=" gcompat" ;;
|
||||||
esac
|
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
|
||||||
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
pattern="/archive/\K[\d.]+(?=)"
|
|
Loading…
Add table
Reference in a new issue