Package Details: balena-cli-bin 13.3.1-1

Git Clone URL: https://aur.archlinux.org/balena-cli-bin.git (read-only, click to copy)
Package Base: balena-cli-bin
Description: balena.io command line interface
Upstream URL: https://balena.io/
Licenses: Apache
Provides: balena-cli
Replaces: resin-cli
Submitter: rmorgans
Maintainer: rmorgans
Last Packager: rmorgans
Votes: 2
Popularity: 0.001685
First Submitted: 2021-03-14 08:20 (UTC)
Last Updated: 2022-03-26 08:16 (UTC)

Latest Comments

kiko283 commented on 2022-03-25 21:49 (UTC) (edited on 2022-03-26 00:18 (UTC) by kiko283)

Also, is there some possibility to include bash completions when deploying package? I understand it is not in the release archive, but still, perhaps someone can think of something?

Edit: I did it myself, I also updated the patch below, please update package soon.

kiko283 commented on 2022-03-24 19:33 (UTC) (edited on 2022-03-26 00:19 (UTC) by kiko283)

Here's a patch file to update to latest v13.3.1.

Edit: I also included bash completions file.

Patch:

From 6dfd5104c1ed0031a05b3347de493dc4b340a127 Mon Sep 17 00:00:00 2001
From: Kristijan Kovilevski <kristijan@digitalnode.com>
Date: Sat, 26 Mar 2022 01:15:18 +0100
Subject: [PATCH] update to v13.3.1, include bash completion

---
.SRCINFO   |  8 +++++---
.gitignore |  5 +++++
PKGBUILD   | 18 ++++++++++++------
3 files changed, 22 insertions(+), 9 deletions(-)
create mode 100644 .gitignore

diff --git a/.SRCINFO b/.SRCINFO
index 4aaf3e8..1404cba 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = balena-cli-bin
    pkgdesc = balena.io command line interface
-   pkgver = 12.51.1
+   pkgver = 13.3.1
    pkgrel = 1
    url = https://balena.io/
    arch = x86_64
@@ -13,8 +13,10 @@ pkgbase = balena-cli-bin
    provides = balena-cli
    replaces = resin-cli
    options = !strip
-   source = https://github.com/balena-io/balena-cli/releases/download/v12.51.1/balena-cli-v12.51.1-linux-x64-standalone.zip
-   sha256sums = b3d9c32c5a8e3ced1be83e77db0e614f901d0099b1de2f3cb29c4688b41e2f70
+   source = https://github.com/balena-io/balena-cli/releases/download/v13.3.1/balena-cli-v13.3.1-linux-x64-standalone.zip
+   source = https://raw.githubusercontent.com/balena-io/balena-cli/v13.3.1/completion/balena-completion.bash
+   sha256sums = 1464e1770cd38c0d4fea3e5f75b4fe608ecb1f1b85ff0d5bc9dc477de6b61166
+   sha256sums = e426be016354b1003d7579c8c6deacae5902ecd7383280d9720084fbe541fe88
    optdepends_x86_64 = lib32-glibc: emulated builds

pkgname = balena-cli-bin
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..203a0d3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+balena-completion.bash
+*.zip
+*.zst
diff --git a/PKGBUILD b/PKGBUILD
index 7bfefe6..2929473 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,5 @@
# Maintainer: Rick Morgans <rick.morgans@gmail.com>
+# Contributor: Kristijan Kovilevski <kristijan@digitalnode.com>
# derived from aur/balena-cli by
# Matthew McGinn <mamcgi@gmail.com>
# Gergely Imreh <imrehg@gmail.com>
@@ -7,7 +8,7 @@ pkgname=balena-cli-bin
_pkgname="${pkgname%-bin}"
provides=(${_pkgname})
pkgdesc='balena.io command line interface'
-pkgver=12.51.1
+pkgver=13.3.1
pkgrel=1
arch=('x86_64')
url='https://balena.io/'
@@ -25,14 +26,19 @@ optdepends=(
optdepends_x86_64=('lib32-glibc: emulated builds')
source=(
    https://github.com/balena-io/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-linux-x64-standalone.zip
+   https://raw.githubusercontent.com/balena-io/balena-cli/v${pkgver}/completion/balena-completion.bash
)
options=(!strip)
replaces=('resin-cli')
-sha256sums=('b3d9c32c5a8e3ced1be83e77db0e614f901d0099b1de2f3cb29c4688b41e2f70')
+sha256sums=(
+   '1464e1770cd38c0d4fea3e5f75b4fe608ecb1f1b85ff0d5bc9dc477de6b61166'
+   'e426be016354b1003d7579c8c6deacae5902ecd7383280d9720084fbe541fe88'
+)

package() {
-   mkdir ${pkgdir}/opt
-   mv ${srcdir}/balena-cli ${pkgdir}/opt/
-   mkdir -p ${pkgdir}/usr/bin
-   ln -s /opt/balena-cli/balena ${pkgdir}/usr/bin/balena 
+   install -dm755 "${pkgdir}/opt/"
+   cp -r "${srcdir}/balena-cli" "${pkgdir}/opt/"
+   install -dm755 "${pkgdir}/usr/bin/"
+   ln -s ../../opt/balena-cli/balena "${pkgdir}/usr/bin/balena"
+   install -Dm644 "${srcdir}/balena-completion.bash" "${pkgdir}/usr/share/bash-completion/completions/balena"
}
-- 
2.35.1