testing/py3-pygpgme: build with gpep517

This commit is contained in:
ptrcnull 2024-08-05 22:44:36 +02:00
parent d658d99234
commit 20668dced2

View File

@ -3,13 +3,13 @@
pkgname=py3-pygpgme
_pkgname=pygpgme
pkgver=0.3.1
pkgrel=8
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"
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
@ -17,11 +17,14 @@ source="$_pkgname-$pkgver.tar.gz::https://github.com/rshk/pygpgme/archive/v$pkgv
builddir="$srcdir"/$_pkgname-$pkgver
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="