From f42272aaa280956d77891d40039c9ba67bfb8882 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 2 Jan 2023 12:47:06 +0100 Subject: try to fix azure-cli packages --- python-azure-cli-core/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 python-azure-cli-core/PKGBUILD (limited to 'python-azure-cli-core') diff --git a/python-azure-cli-core/PKGBUILD b/python-azure-cli-core/PKGBUILD new file mode 100644 index 000000000..81247ce5b --- /dev/null +++ b/python-azure-cli-core/PKGBUILD @@ -0,0 +1,34 @@ +# 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://files.pythonhosted.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" +} -- cgit v1.2.3-70-g09d2