Initial build (0.5.0)

This commit is contained in:
Vitalii Kuzhdin 2026-02-06 20:06:06 +02:00
commit b7945ac4ac
4 changed files with 85 additions and 0 deletions

17
.SRCINFO Normal file
View file

@ -0,0 +1,17 @@
pkgbase = arduino-flasher-cli-bin
pkgdesc = CLI tool to flash UNO Q boards with the latest Arduino Linux image
pkgver = 0.5.0
pkgrel = 1
url = https://github.com/arduino/arduino-flasher-cli
arch = aarch64
arch = x86_64
license = GPL-3.0-only
depends = glibc
provides = arduino-flasher-cli
conflicts = arduino-flasher-cli
source_aarch64 = https://github.com/arduino/arduino-flasher-cli/releases/download/v0.5.0/arduino-flasher-cli-0.5.0-linux-arm64.tar.gz
sha256sums_aarch64 = ac56dee5b55451fa3d0889b72ab216375d45ca0e217e4525d53f49038ea1318c
source_x86_64 = https://github.com/arduino/arduino-flasher-cli/releases/download/v0.5.0/arduino-flasher-cli-0.5.0-linux-amd64.tar.gz
sha256sums_x86_64 = 0fd72ca93ebc118a74c5edfee51bd94f6e97ec5469d4c7fb936083dd8c65ad28
pkgname = arduino-flasher-cli-bin

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
*
!PKGBUILD
!.SRCINFO
!.gitignore
!.nvchecker.toml

5
.nvchecker.toml Normal file
View file

@ -0,0 +1,5 @@
[arduino-flasher-cli-bin]
source = "github"
github = "arduino/arduino-flasher-cli"
use_latest_release = true
prefix = "v"

58
PKGBUILD Normal file
View file

@ -0,0 +1,58 @@
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
_pkgname="arduino-flasher-cli"
pkgname="${_pkgname}-bin"
pkgver=0.5.0
pkgrel=1
pkgdesc="CLI tool to flash UNO Q boards with the latest Arduino Linux image"
arch=(
'aarch64'
'x86_64'
)
url="https://github.com/arduino/${_pkgname}"
license=(
'GPL-3.0-only'
)
depends=(
'glibc'
)
provides=(
"${_pkgname}"
)
conflicts=(
"${_pkgname}"
)
source_aarch64=(
"${url}/releases/download/v${pkgver}/${_pkgname}-${pkgver}-linux-arm64.tar.gz"
)
source_x86_64=(
"${url}/releases/download/v${pkgver}/${_pkgname}-${pkgver}-linux-amd64.tar.gz"
)
sha256sums_aarch64=('ac56dee5b55451fa3d0889b72ab216375d45ca0e217e4525d53f49038ea1318c')
sha256sums_x86_64=('0fd72ca93ebc118a74c5edfee51bd94f6e97ec5469d4c7fb936083dd8c65ad28')
prepare() {
cd "${srcdir}"
mkdir -p "completions"
chmod +x ./"${_pkgname}"
}
build() {
cd "${srcdir}"
for _sh in bash fish powershell zsh; do
./"${_pkgname}" completion "${_sh}" > "completions/${_pkgname}.${_sh}"
done
}
package() {
cd "${srcdir}"
install -vDm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -vDm644 "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
install -vDm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
cd "completions"
install -vDm644 "${_pkgname}.bash" "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}"
install -vDm644 "${_pkgname}.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/${_pkgname}.fish"
install -vDm644 "${_pkgname}.powershell" "${pkgdir}/usr/share/powershell/Modules/${_pkgname}/${_pkgname}.ps1"
install -vDm644 "${_pkgname}.zsh" "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}"
}