testing/py3-cobs: build with gpep517

This commit is contained in:
ptrcnull 2024-08-30 23:24:37 +02:00
parent f1b81c0932
commit 2771d22f30

View File

@ -1,27 +1,29 @@
# Maintainer: Martijn Braam <martijn@brixit.nl> # Maintainer: Martijn Braam <martijn@brixit.nl>
pkgname=py3-cobs pkgname=py3-cobs
_pyname=cobs
pkgver=1.2.0 pkgver=1.2.0
pkgrel=3 pkgrel=4
pkgdesc="Consistent Overhead Byte Stuffing" pkgdesc="Consistent Overhead Byte Stuffing"
options="!check" # Testsuite runs 0 tests
url="https://pypi.org/project/cobs/" url="https://pypi.org/project/cobs/"
arch="all" arch="all"
license="MIT" license="MIT"
depends="python3" depends="python3"
makedepends="py3-setuptools python3-dev" makedepends="py3-setuptools python3-dev py3-gpep517"
_pypiprefix="${_pyname%${_pyname#?}}"
subpackages="$pkgname-pyc" subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" source="https://files.pythonhosted.org/packages/source/c/cobs/cobs-$pkgver.tar.gz"
builddir=$srcdir/$_pyname-$pkgver builddir="$srcdir/cobs-$pkgver"
options="!check" # Testsuite runs 0 tests
build() { build() {
python3 setup.py build gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
} }
package() { package() {
python3 setup.py install --skip-build --root="$pkgdir" gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
} }
sha512sums=" sha512sums="
92a3324fd07dd75ce84049f412bd3f1e9cfc42864672eea09f2d106a942dc0dab8bef1812a1288b92a70897f73171919d4b4b917d9155eb193606f8159d34405 cobs-1.2.0.tar.gz 92a3324fd07dd75ce84049f412bd3f1e9cfc42864672eea09f2d106a942dc0dab8bef1812a1288b92a70897f73171919d4b4b917d9155eb193606f8159d34405 cobs-1.2.0.tar.gz
" "