summaryrefslogtreecommitdiff
path: root/python-azure-cli-core/PKGBUILD
blob: 33d0f2bc996957b5b7d0e2ca01c995627a7f689b (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
# Maintainer: Erich Eckner <arch at eckner dot net>

_pkgname=azure-cli-core
pkgname=python-$_pkgname
pkgver=2.50.0
pkgrel=1
pkgdesc='Microsoft Azure Command-Line Tools Core Module'
url='https://pypi.org/project/azure-cli-core/'
depends=(

  'python>=3.11'
  'python<3.12')
makedepends=(
  'python-setuptools')
license=('BSD')
arch=('any')
source=("https://pypi.python.org/packages/f1/80/d67ff842d315c92be38bd2519e87708a8c80e097526f3fcc3e36c447c18d/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('73a2fc2f8fa7c1bb079cc30d89f749531f48a14b48c771c446714c340b41ac270c262995dd0fd068c3df26b08c1cdd2a5c3759947b346f4ca324809e3d53c4a8')

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