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

_pkgname=azure-cli-core
pkgname=python-$_pkgname
pkgver=2.45.0
pkgrel=2
pkgdesc='Microsoft Azure Command-Line Tools Core Module'
url='https://pypi.org/project/azure-cli-core/'
depends=(
  'openssl-1.1'
  'python>=3.11'
  'python<3.12'
  'python-azure-common'
  'python-humanfriendly'
  'python-knack'
  'python-pkginfo')
makedepends=(
  'python-pip'
  'python-setuptools'
  'rust')
license=('BSD')
arch=('any')
source=("https://pypi.python.org/packages/71/bd/5b92d67701c54c8ce6031a9d303602c15b8d73fdc211c4ef2f6a6847eb52/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('7ba13c3e96ab62a25c6585be7a3b5d8953d79de55877022f21e6908f857d76a9ca26dc7c9801e635712acb24529f075a48bed9f191a1e55efbbf0df10d2dab06')

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