summaryrefslogtreecommitdiff
path: root/python-azure-cli-telemetry
diff options
context:
space:
mode:
Diffstat (limited to 'python-azure-cli-telemetry')
-rw-r--r--python-azure-cli-telemetry/PKGBUILD31
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"
+}