summaryrefslogtreecommitdiff
path: root/azure-cli/PKGBUILD
blob: ac3c844a58fbd8584d256f5eb48655542a518950 (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.59.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/dd/e0/7d75a972890f6a1ebfb17a4b963304079c33bdb564a5cd340cab6541c7c5/${pkgname}-${pkgver}.tar.gz"
        "az")
sha512sums=('4ff2392d76f8f45d4974037cd15c75e91e7896e150e6a1d8b76b0e47b7f1fa6e2bbb8179e5c39e98321476f7885f30a3b48410dc0bf16490be223ee6253cfd58'
            '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"
}