summaryrefslogtreecommitdiff
path: root/python-azure-cli-core/PKGBUILD
blob: c4fea44aabf0a068841fec3590d2393b2d07d15e (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.49.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/a0/dd/3b7992e23330d00012f7132e0044317fafe1e005cb5fc37d20f61e0bfbff/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('86a5f7cc264801804dc1e83f422067cb7f6f2c7436a006ee64e81bb649fefc93aad9eab85fe0affcca833e41e1e658ecaa324b94275cec96243195f2632879d8')

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"
}