testing/licenseheaders: build with gpep517

This commit is contained in:
ptrcnull 2024-08-04 23:38:55 +02:00
parent 5800bd5a25
commit ce7fb1f849

View File

@ -2,23 +2,26 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=licenseheaders
pkgver=0.8.8
pkgrel=3
pkgrel=4
pkgdesc="Add/Replace license headers in a directory tree of source files"
url="https://github.com/johann-petrak/licenseheaders"
arch="noarch"
license="MIT"
depends="python3 py3-regex"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
options="!check" # no tests
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/l/licenseheaders/licenseheaders-$pkgver.tar.gz"
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="