testing/py3-tg: build with gpep517

This commit is contained in:
ptrcnull 2024-08-06 14:34:23 +02:00
parent ccb34eb20f
commit aacd69c557

View File

@ -3,12 +3,13 @@
pkgname=py3-tg
_pyname=tg
pkgver=0.19.0
pkgrel=4
pkgrel=5
pkgdesc="Terminal telegram client that really works"
url="https://github.com/paul-nameless/tg"
arch="noarch !s390x"
license="Unlicense"
depends="python3 py3-telegram py3-setuptools"
depends="python3 py3-telegram"
makedepends="py3-gpep517 py3-poetry-core"
subpackages="$pkgname-pyc"
source="
$pkgname-$pkgver.tar.gz::https://github.com/paul-nameless/tg/archive/refs/tags/v$pkgver.tar.gz
@ -18,11 +19,14 @@ builddir="$srcdir/$_pyname-$pkgver"
options="!check"
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="