blob: dcf7fee70e18d4fa9db21abdbf6dadc1e6a00bd7 (
plain)
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
39
40
41
42
|
# 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>
pkgname=balena-cli-bin
_pkgname="${pkgname%-bin}"
provides=(${_pkgname})
pkgdesc='balena.io command line interface'
pkgver=20.0.2
pkgrel=1
arch=('x86_64')
url='https://balena.io/'
_github_url="https://github.com/balena-io/balena-cli"
license=('APACHE')
depends=()
makedepends=()
optdepends=(
'docker: balena build/deploy'
'python2: balena preload'
'openssh: balena ssh'
'linux-aufs: balena preload/build/deploy --build'
'avahi: balena scan'
)
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/a08ac447a36e039ea4f952ee2477f920b91ff53b/completion/balena-completion.bash
)
options=(!strip)
replaces=('resin-cli')
sha256sums=('9d4d28a62625c2945e4c1df79d61258fbae36cd2126d58971b0fea9237dabeed'
'73035fd6887a71a6ae5313ab7a16dac9ac53c196caf8db44133ff4434aea4c88')
package() {
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"
}
|