blob: a702d4dcb557cb941db00a70b62e8f2a25a3d3c2 (
plain) (
blame)
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
|
_pkgname=azure-cli
pkgname=azure-cli-kj_sh604
pkgver=2.76.0
pkgrel=1
pkgdesc="Command-line tools for Microsoft Azure (uses python3.12)"
# Microsoft has not updated `az` to support python 3.13 yet: https://learn.microsoft.com/en-us/cli/azure/azure-cli-support-lifecycle?view=azure-cli-latest#python-dependency
arch=('any')
url="https://github.com/Azure/azure-cli"
license=('MIT')
conflicts=("azure-cli")
provides=("azure-cli")
depends=(
"gcc-libs"
"glibc"
"libsecret"
"python312"
)
makedepends=("git")
options=('!debug' '!strip')
source=("git+https://github.com/Azure/azure-cli.git#tag=azure-cli-${pkgver}"
"az")
sha256sums=('9a7dffb6b7dd7523909b0188702156bda2317d3fe1342c15db8dc1f1f8c43567'
'beba4c6b852bd4f3b2bfaa26cec9318b19b677a937c3e9ce239c21b13ec00b07')
prepare() {
cd azure-cli
}
package() {
cd azure-cli
mkdir -v "$pkgdir/opt"
python3.12 -m venv "$pkgdir/opt/azure-cli"
# shellcheck disable=SC1091
source "$pkgdir/opt/azure-cli/bin/activate"
export PYTHONDONTWRITEBYTECODE=1
export PYTHONUNBUFFERED=1
pip install --upgrade pip
scripts/install_full.sh
install -vDm755 "$srcdir/az" "$pkgdir/usr/bin/az"
install -vDm644 az.completion "$pkgdir/usr/share/bash-completion/completions/az"
install -vDm644 -t "$pkgdir/usr/share/licenses/$_pkgname" LICENSE
}
|