summaryrefslogtreecommitdiff
path: root/azure-cli/PKGBUILD
blob: 2952c748105d721d9db95c3ea707ad18e3a65f3f (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
# 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.53.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://pypi.python.org/packages/08/27/fb512b7603f8d4c278e96802f2afa2cf113a4775d1791c9ca397ab166350/${pkgname}-${pkgver}.tar.gz"
        "az")
sha512sums=('279476544a19ce6964562d649fc597f6791ea1cfd56b6727e297f52127b2f2a45aec2d759d4ca428eee922ae337b7cdab0cf4433c38dbb3056e0e4882cf06f65'
            '94a9d3daeced17fccae9cb94638a82db0515e4c7fd6b8bbe68f9b428dc84c19a6c956a809c160083e040180914665a3980c257e9f210c431c8d46d574bf113ba')
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"
}