# Maintainer: Erich Eckner _pkgname=azure-cli-core pkgname=python-$_pkgname pkgver=2.43.0 pkgrel=1 pkgdesc='Microsoft Azure Command-Line Tools Core Module' url='https://pypi.org/project/azure-cli-core/' depends=( 'python>=3.10' 'python<3.11' 'python-azure-common' 'python-humanfriendly' 'python-knack' 'python-pkginfo') makedepends=( 'python-pip' 'python-setuptools') license=('BSD') arch=('i686' 'pentium4' 'x86_64') source=("https://pypi.python.org/packages/83/b3/849ccb3938efa1f9167930ec282d9797601dffb7f1218779f325d4e76388/${_pkgname}-${pkgver}.tar.gz") sha512sums=('b033ece4f3a933e6fb8e3ebb2306cb6c6af584bc79595c6fc102912078786de8d4db678f9e78c73a3889e29e3f4970ad896cd11b8fd5f867940f3d41c6b83dcc') 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" }