summaryrefslogtreecommitdiff
path: root/azure-cli/PKGBUILD
blob: 14bd3c39f6e012c090d723766e9ca6340e2c73fe (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
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: pallxk <aur@pallxk.com>
# https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux

pkgname=azure-cli
_pkgname="${pkgname//-/_}"
pkgver=2.64.0
pkgrel=1
pkgdesc="Command-line tools for Azure."
arch=('any')
url="https://github.com/Azure/azure-cli"
license=('MIT')
makedepends=(python-setuptools)
depends=(python-azure-cli-core)
source=("https://files.pythonhosted.org/packages/8a/2d/cc0ccae02c6f0f00cb0d56460e568975fbe55ce1951c82ffe4c12197dbdf/${_pkgname}-${pkgver}.tar.gz"
        "az")
sha256sums=('d72fdd526920edda93bed4c85bb4cd26ecf508ab966f0c26de1d2459a8b58355'
            '990f70efec828c1e1f3f57748fc6e40f9705f2223dc96683e8e29d118daac116')

options=(!strip)

build() {
  cd "${_pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${_pkgname}-${pkgver}"
  python setup.py install --skip-build --root="${pkgdir}" --prefix=/usr

  install -Dm755 az "$pkgdir/usr/bin"
}