# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Felix Yan <felixonmars@archlinux.org>

pkgname=python-pykerberos
_name=pykerberos
epoch=1
pkgver=1.2.4
pkgrel=3
pkgdesc="High-level interface to Kerberos"
arch=(x86_64 powerpc64le powerpc riscv64)
license=('Apache')
url="https://github.com/02strich/pykerberos"
depends=('python' 'krb5')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=(https://pypi.python.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz)
sha512sums=('92adb2c788fb5be78d2a7f65b9292534cea0c122f4cd27868d672ffd25b40d11d950d13d4b8636d8d5d6816b045ca8e13a649ce909a99361e494fb779eca79d8')

build() {
  cd $_name-$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd $_name-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
# install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
