testing/py3-aiosasl: build with gpep517

This commit is contained in:
ptrcnull 2024-08-30 23:22:11 +02:00
parent 154d7f9bb3
commit f7c42d5f51

View File

@ -3,24 +3,28 @@
pkgname=py3-aiosasl
_pkgname=aiosasl
pkgver=0.5.0
pkgrel=3
pkgrel=4
pkgdesc="A generic asyncio-based SASL authentication library."
url="https://pypi.org/project/aiosasl/"
arch="all"
license="LGPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # tests not included in source package.
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
install -Dm644 COPYING.LESSER COPYING.gpl3 LICENSES README.rst \
-t "$pkgdir"/usr/share/licenses/$pkgname
}