summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5b4f9da201b17c1cc06ce8efd008e08388ff7a6 (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
37
38
39
40
41
42
# Maintainer: envolution
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=python-google-cloud-resource-manager
_pkgname=${pkgname#python-}
pkgver=1.14.2
pkgrel=1
pkgdesc="Google Cloud Resource Manager API client library"
arch=(any)
url='https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-resource-manager'
license=(Apache-2.0)
makedepends=(
  python-build
  python-installer
  python-wheel
)
depends=(
  python
  python-google-api-core
  python-grpc-google-iam-v1
  python-proto-plus
  python-protobuf
  python-google-auth
  python-googleapis-common-protos
  python-requests
  python-grpcio
)
source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/${_pkgname//-/_}-$pkgver.tar.gz")
sha256sums=('962e2d904c550d7bac48372607904ff7bb3277e3bb4a36d80cc9a37e28e6eb74')

_archive="google_cloud_resource_manager-${pkgver}"

build() {
  cd "$_archive"
  python -m build --wheel --no-isolation
}

package() {
  cd "$_archive"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
# vim:set ts=2 sw=2 et: