summaryrefslogtreecommitdiff
path: root/azure-cli/PKGBUILD
blob: 6e5674cb4d511df4015b3bc450383948f12df94f (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
# 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.42.0
pkgrel=1
pkgdesc="Command-line tools for Azure."
arch=('any')
url="https://github.com/Azure/azure-cli"
license=('MIT')
makedepends=(python-setuptools)
source=("https://pypi.python.org/packages/6d/61/6ef4842d2d9926296de6ab7e232d94bebd168a5d9c5be85de426d3c38e96/${pkgname}-${pkgver}.tar.gz"
        "az")
sha512sums=('7c8432abbcbb037c12f2ed1b9b5a9ecba1b4ac69f8d39ac640db3b5556d8424843e66ee9f3f208f024a261662673aaac560b603ae8ca08c135ec05747f0b9d87'
            '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"
}