blob: 31a90b38332a9bc7fbced8026ad0a09d609a49f9 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Luis BaƱuelos <luiscarlos.banuelos@gmail.com>
# Contributor: Cass Midkiff <cass.midkiff.kde@gmail.com>
pkgname=devtunnel-cli-bin
_bin_name=devtunnel
# there's no url versioning, so this will install the latest published version
# regardless what the `pkgver` is set to
pkgver=1.0.1404+0e554806f5
pkgrel=1
pkgdesc="Microsoft Dev Tunnels CLI client"
# dev, ppe, prod
_env=dev
arch=('aarch64' 'x86_64')
url="https://learn.microsoft.com/en-us/azure/developer/dev-tunnels/"
license=('unknown')
depends=(
# this is an explicit dependency from the install script
# https://aka.ms/DevTunnelCliInstall
'libsecret'
# these are dependencies identified from find-deps and 'pacman -Fx <lib file name>\.so'
'glibc' 'zlib' 'gcc-libs'
)
provides=($_bin_name)
conflicts=($_bin_name)
_source_x86_64=devtunnel_x86_64
_source_aarch64=devtunnel_arm64
source=()
source_x86_64=($_source_x86_64::https://tunnelsassets$_env.blob.core.windows.net/cli/linux-x64-devtunnel)
source_aarch64=($_source_aarch64::https://tunnelsassets$_env.blob.core.windows.net/cli/linux-arm64-devtunnel)
noextract=($_source_x86_64 $_source_aarch64)
sha256sums_aarch64=('31e8cfa5f3fac23f707f0b6dda8629b596a616c894ea8e7e5004b40e12b646c4')
sha256sums_x86_64=('b7e5f085869b0e03a075cd584675bb4feba7dd277ec1c77c168354e8161df9cb')
validpgpkeys=()
# stripping symbols causes an error on execution:
# > Failure processing application bundle; possible file corruption.
# > Arithmetic overflow while reading bundle.
# > A fatal error occured while processing application bundle
options=(!strip)
pkgver() {
cd "${srcdir}"
_pkg=$_source_x86_64
if [ "${CARCH}" = "aarch64" ]; then
_pkg=$_source_aarch64
fi
chmod +x ${_pkg}
./${_pkg} --version | sed -n 's/Tunnel CLI version: \(.*\)/\1/p'
}
package() {
_pkg=$_source_x86_64
if [ "${CARCH}" = "aarch64" ]; then
_pkg=$_source_aarch64
fi
install -d "${pkgdir}/usr/bin"
install -m755 "${srcdir}/${_pkg}" "${pkgdir}/usr/bin/${_bin_name}"
}
|