testing/py3-mando: build with gpep517

This commit is contained in:
ptrcnull 2024-08-30 23:25:11 +02:00
parent 58fe9919c2
commit 84674a1a0f

View File

@ -3,26 +3,30 @@
pkgname=py3-mando
_pkgname=mando
pkgver=0.7.1
pkgrel=2
pkgrel=3
pkgdesc="Python CLI apps with little to no effort at all!"
options="!check" # no test suite
url="https://mando.readthedocs.org/"
arch="noarch"
license="MIT"
depends="python3 py3-six"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/m/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
options="!check" # no test suite
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 README.rst -t "$pkgdir"/usr/share/doc/"$pkgname"
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/mando/tests
}