# Maintainer: Erich Eckner _pkgname=azure-cli-core pkgname=python-$_pkgname pkgver=2.56.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/75/7e/cb8bbd8fbd9c425cc5fa887820f5cd0650b3b02c66a1b77203f9ac11ed50/${_pkgname}-${pkgver}.tar.gz") sha512sums=('7a12bc45b6a72a3734d86461c66be1bdf1a6131bf063345f8d552e371f02415b13056898eb5c110c699e70b38fd05ee60fa588548ee50d8613d88ffec7fd823c') 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" }