# Maintainer: TBK <tbk@jjtc.eu>
# Contributor: TBK <tbk@jjtc.eu>
pkgname=py3-pygpgme
_pkgname=pygpgme
pkgver=0.3.1
pkgrel=9
pkgdesc="PyGPGME is a Python module that lets you sign, verify, encrypt and decrypt messages using the OpenPGP format."
url="https://github.com/rshk/pygpgme/"
arch="all"
license="LGPL-2.1-or-later"
depends="python3"
makedepends="gpgme-dev python3-dev py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/rshk/pygpgme/archive/v$pkgver.tar.gz
	py3.11.patch
	"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
f3c9de92956917f5e55c3a8d49be354d845e4f99b3a5173601841afcdd7b9ad270be0dea50468425c517328ceba46f1252685587bcf011287d1ed3a07b7ba8ab  pygpgme-0.3.1.tar.gz
6e34c4b3001348cc0763f1ad2174244518f36a209bcb7ecdfbf271b9ee9b64014ad1726ce7467ec650f17f05f45730c88241e7a838dd080fc3c8f99209201b06  py3.11.patch
"
