summaryrefslogtreecommitdiff
path: root/python-azure-cli-core/PKGBUILD
blob: b0fc93585fe001f4794c68051f9bf5c638e2d3c5 (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>

_pkgname=azure-cli-core
pkgname=python-$_pkgname
pkgver=2.51.0
pkgrel=1
pkgdesc='Microsoft Azure Command-Line Tools Core Module'
url='https://pypi.org/project/azure-cli-core/'
depends=(

  'python>=3.11'
  'python<3.12')
makedepends=(
  'python-setuptools')
license=('BSD')
arch=('any')
source=("https://pypi.python.org/packages/f7/6d/68e6eae61a81a2006d7d4f6bc2de77aa97d38bc78a15ab1d2470f23b7c3c/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('ddd59e3bf8725fcdbd3e96ddd99a25bfe26e4afb2b692166c2cc8e65f992131817934c7c029c102342dbff35ccff3721712da1e2f15b6f2e9af4dbd5969d4dce')

build() {
  cd "$srcdir/$_pkgname-$pkgver"
  python setup.py build_ext --inplace
  python setup.py test
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1 
  install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}