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

_pkgname=azure-cli-core
pkgname=python-$_pkgname
pkgver=2.43.0
pkgrel=1
pkgdesc='Microsoft Azure Command-Line Tools Core Module'
url='https://pypi.org/project/azure-cli-core/'
depends=(
  'python>=3.10'
  'python<3.11'
  'python-azure-common'
  'python-humanfriendly'
  'python-knack'
  'python-pkginfo')
makedepends=(
  'python-pip'
  'python-setuptools'
  'rust')
license=('BSD')
arch=('i686' 'pentium4' 'x86_64')
source=("https://pypi.python.org/packages/83/b3/849ccb3938efa1f9167930ec282d9797601dffb7f1218779f325d4e76388/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('b033ece4f3a933e6fb8e3ebb2306cb6c6af584bc79595c6fc102912078786de8d4db678f9e78c73a3889e29e3f4970ad896cd11b8fd5f867940f3d41c6b83dcc')

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