33 lines
1010 B
Bash
33 lines
1010 B
Bash
# Template file for 'arduino-cli'
|
|
pkgname=arduino-cli
|
|
version=0.17.0
|
|
revision=1
|
|
build_helper=qemu
|
|
build_style=go
|
|
go_import_path=github.com/arduino/arduino-cli
|
|
go_ldflags="-X ${go_import_path}/version.versionString=${version}"
|
|
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="${homepage}/archive/${version}.tar.gz"
|
|
checksum=f54225edb7417be80d686ee7eb4eb281124ddccc13a34d761f12e790f265df9d
|
|
|
|
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
|
|
}
|