Package Details: balena-cli-bin 14.1.0-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: None
Last Packager: rmorgans
Votes: 2
Popularity: 0.000000
First Submitted: 2021-03-14 08:20 (UTC)
Last Updated: 2022-08-09 09:27 (UTC)

Dependencies (6)

Required by (0)

Sources (2)

Latest Comments

t3pfaffe commented on 2023-04-11 20:14 (UTC) (edited on 2023-04-11 20:37 (UTC) by t3pfaffe)

Bellow is a patch file to update to the latest version 15.1.3:

From 5ad86b255879a38b88a5385c1e14804999d37b58 Mon Sep 17 00:00:00 2001
From: Tom Pfaffe <t3@pfaffe.me>
Date: Tue, 11 Apr 2023 16:30:42 -0400
Subject: [PATCH] Bump 15.1.3

Bump balena-cli version and update checksums for git and bash completion files.
---
 .SRCINFO | 10 +++++-----
 PKGBUILD |  8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 0a5c0d3..40a2ea5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = balena-cli-bin
    pkgdesc = balena.io command line interface
-   pkgver = 14.1.0
+   pkgver = 15.1.3
    pkgrel = 1
    url = https://balena.io/
    arch = x86_64
@@ -13,10 +13,10 @@ pkgbase = balena-cli-bin
    provides = balena-cli
    replaces = resin-cli
    options = !strip
-   source = https://github.com/balena-io/balena-cli/releases/download/v14.1.0/balena-cli-v14.1.0-linux-x64-standalone.zip
-   source = https://raw.githubusercontent.com/balena-io/balena-cli/v14.1.0/completion/balena-completion.bash
-   sha256sums = 3b36459609d580b27b1f088fdc1d7a6cca268300dea1e4423392552bcb67b6d6
-   sha256sums = e426be016354b1003d7579c8c6deacae5902ecd7383280d9720084fbe541fe88
+   source = https://github.com/balena-io/balena-cli/releases/download/v15.1.3/balena-cli-v15.1.3-linux-x64-standalone.zip
+   source = https://raw.githubusercontent.com/balena-io/balena-cli/v15.1.3/completion/balena-completion.bash
+   sha256sums = 2d247a52c223394085dce0d5da98a50f93d93038aff294b7c6e1c2d88b63c69e
+   sha256sums = 805cc3ce37b944f6e2367d3963c31675d50451d0fce2be32742f406d23b1f172
    optdepends_x86_64 = lib32-glibc: emulated builds

 pkgname = balena-cli-bin
diff --git a/PKGBUILD b/PKGBUILD
index f6fd741..773c391 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ pkgname=balena-cli-bin
 _pkgname="${pkgname%-bin}"
 provides=(${_pkgname})
 pkgdesc='balena.io command line interface'
-pkgver=14.1.0
+pkgver=15.1.3
 pkgrel=1
 arch=('x86_64')
 url='https://balena.io/'
@@ -26,12 +26,12 @@ 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
+    https://raw.githubusercontent.com/balena-io/balena-cli/v${pkgver}/completion/balena-completion.bash
 )
 options=(!strip)
 replaces=('resin-cli')
-sha256sums=('3b36459609d580b27b1f088fdc1d7a6cca268300dea1e4423392552bcb67b6d6'
-            'e426be016354b1003d7579c8c6deacae5902ecd7383280d9720084fbe541fe88')
+sha256sums=('2d247a52c223394085dce0d5da98a50f93d93038aff294b7c6e1c2d88b63c69e'
+            '805cc3ce37b944f6e2367d3963c31675d50451d0fce2be32742f406d23b1f172')

 package() {
    install -dm755 "${pkgdir}/opt/"
-- 
2.40.0

KlarkKable commented on 2022-08-12 00:20 (UTC)

The SHA for the balena-completion.bash file is no longer valid and fails the validity checks on install. Since the file is not included in the release artifacts, we could probably use the commit for the release to pin the bash-completion instead.

(e.g. https://raw.githubusercontent.com/balena-io/balena-cli/5c8f78678ba28240d2b6de0b1500ef40c0d4b0e4/completion/balena-completion.bash )

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