diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-01-02 12:47:06 +0100 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2023-01-02 16:40:56 +0100 |
commit | f42272aaa280956d77891d40039c9ba67bfb8882 (patch) | |
tree | ad828671dc0139f23800574fe7a2ba88539b3ea4 /python-azure-cli-telemetry | |
parent | 33271ea04d8b2dd02000aefb477bd207475b441a (diff) | |
download | archlinuxewe-f42272aaa280956d77891d40039c9ba67bfb8882.tar.xz |
try to fix azure-cli packages
Diffstat (limited to 'python-azure-cli-telemetry')
-rw-r--r-- | python-azure-cli-telemetry/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/python-azure-cli-telemetry/PKGBUILD b/python-azure-cli-telemetry/PKGBUILD new file mode 100644 index 000000000..b445f3ed7 --- /dev/null +++ b/python-azure-cli-telemetry/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> + +_pkgname=azure-cli-telemetry +pkgname=python-$_pkgname +pkgver=1.0.8 +pkgrel=1 +pkgdesc='Microsoft Azure CLI Telemetry Package' +url='https://pypi.org/project/azure-cli-telemetry/' +depends=( + 'python>=3.10' + 'python<3.11' + 'python-portalocker') +makedepends=( + 'python-pip' + 'python-setuptools') +license=('BSD') +arch=('i686' 'pentium4' 'x86_64') +source=("https://files.pythonhosted.org/packages/f0/d2/1e4e9bb8ccafa5abc788e5c4329984a27164873f4b64ebe5c3495e622486/${_pkgname}-${pkgver}.tar.gz") +sha512sums=('a9cdfc76608b4099528d277ccb187750427838dd26ba2fea9969a21f4351bcfe0943d5004deb52f4290c9f6989061e4b4d62194c64f495c941b31cc8272dae26') + +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" +} |