summaryrefslogtreecommitdiff
path: root/python-azure-cli-core/PKGBUILD
blob: 6e331834c4a900498144c9d6843cf8274b027a43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Erich Eckner <arch at eckner dot net>

_pkgname=azure-cli-core
pkgname=python-$_pkgname
pkgver=2.61.0
pkgrel=2
pkgdesc='Microsoft Azure Command-Line Tools Core Module'
url='https://pypi.org/project/azure-cli-core/'
__pkgname=azure_cli_core
depends=(
  'python>=3.13'
  'python<3.14')
makedepends=(
  'python-pip'
  'python-setuptools'
  'python-wheel')
license=('BSD')
arch=('any')
source=("https://files.pythonhosted.org/packages/84/b5/eb57177345712ab1e895877ca143919922ee43ee98593ccb308bb7696d9b/${__pkgname}-${pkgver}.tar.gz")
sha512sums=('cbb64f8a211778a22451c440a622b38fe0514e80cafc9aa595d79d14b5ad17057fa01ddab81f9934755262b2642a2898a57024a79435d41e419d50dd6534da8e')

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"
}