From 7e6bafebf4f49f2a7ff47f7c120be85c6d157b58 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sat, 17 Dec 2022 14:38:48 +0100 Subject: [PATCH] python-pkgconfig: port to build/installer --- python-pkgconfig/PKGBUILD | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/python-pkgconfig/PKGBUILD b/python-pkgconfig/PKGBUILD index f6963e3a..4c55eaaf 100644 --- a/python-pkgconfig/PKGBUILD +++ b/python-pkgconfig/PKGBUILD @@ -1,25 +1,30 @@ pkgname=python-pkgconfig pkgver=1.5.5 -pkgrel=1 +pkgrel=2 pkgdesc='Python module to interface with the pkg-config command line tool' arch=(any) url='https://github.com/matze/pkgconfig' -license=(MIT) +license=('spdx:MIT') depends=("python") -makedepends=("python-setuptools") +makedepends=( + "python-poetry-core" + "python-build" + "python-installer" +) source=(https://pypi.io/packages/source/p/pkgconfig/pkgconfig-$pkgver.tar.gz) sha256sums=('deb4163ef11f75b520d822d9505c1f462761b4309b1bb713d08689759ea8b899') build() { cd pkgconfig-$pkgver - python setup.py build + export GIT_DIR="$(pwd)" + python -m build --wheel --skip-dependency-check --no-isolation } package() { cd pkgconfig-$pkgver - python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }