Install this version:
emerge -a =dev-embedded/arduino-cli-1.3.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-embedded/arduino-cli-1.3.1
Or alternatively:
emerge --autounmask-write -a =dev-embedded/arduino-cli-1.3.1
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Next-generation arduino command line tool"
HOMEPAGE="https://arduino.github.io/arduino-cli/latest/"
SRC_URI="
https://github.com/arduino/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz
"
LICENSE="Apache-2.0 BSD BSD-2 GPL-2 GPL-3 LGPL-3 MIT MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
src_compile() {
ego build -tags xversion \
-ldflags "-X github.com/arduino/arduino-cli/version.versionString=${PV}"
}
src_install() {
dobin arduino-cli
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | arduino-cli-1.3.1-vendor.tar.xz | 2919532 bytes | https://github.com/gentoo-golang-dist/arduino-cli/releases/download/v1.3.1/arduino-cli-1.3.1-vendor.tar.xz |
| DIST | arduino-cli-1.3.1.tar.gz | 10986096 bytes | https://github.com/arduino/arduino-cli/archive/refs/tags/v1.3.1.tar.gz |