-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathtemplate
More file actions
38 lines (35 loc) · 1.21 KB
/
template
File metadata and controls
38 lines (35 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Template file for 'arduino-cli'
pkgname=arduino-cli
version=1.4.0
revision=2
build_style=go
build_helper="qemu"
go_import_path=github.com/arduino/arduino-cli
go_ldflags="
-X ${go_import_path}/internal/version.versionString=${version}
-X ${go_import_path}/internal/version.commit=v${version}
-X ${go_import_path}/internal/version.date=${SOURCE_DATE_EPOCH}
"
short_desc="Arduino command line interface"
maintainer="Filip Rojek <filip@filiprojek.cz>"
license="GPL-3.0-or-later"
homepage="https://github.com/arduino/arduino-cli"
distfiles="https://github.com/arduino/arduino-cli/archive/v${version}.tar.gz"
checksum=142d48462387c0bcd900e7969892b974d26bcfa9e42674bf9e9c4da2919ca857
# Tests do not find executable in build environment
make_check=no
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
}