--- PKGBUILD 2023-04-13 17:35:30.933829336 +0200 +++ PKGBUILD 2023-04-13 17:30:39.757081688 +0200 @@ -8,18 +8,20 @@ pkgname=('brotli' 'python-brotli' 'brotli-testdata') _gitcommit=e61745a6b7add50d380cfd7d3883dd6c62fc2c71 pkgver=1.0.9 -pkgrel=12 +pkgrel=13 pkgdesc='Generic-purpose lossless compression algorithm' url='https://github.com/google/brotli' arch=('x86_64') license=('MIT') -makedepends=('git' 'cmake' 'python-setuptools') +makedepends=('git' 'cmake' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel') source=(${pkgname}::"git+${url}#commit=${_gitcommit}") sha512sums=('SKIP') prepare() { cd ${pkgbase} git cherry-pick -n 09b0992b6acb7faa6fd3b23f9bc036ea117230fc # Fix broken Libs: in pc file + git cherry-pick -n f4153a09f87cbb9c826d8fc12c74642bb2d879ea # build-base to build_base + git cherry-pick -n 388d0d53fb29271492537015beeed91b74076411 # pyproject.toml } pkgver() { @@ -29,7 +31,7 @@ build() { cd ${pkgbase} - python setup.py build + python -m build --wheel cmake -S . -B build \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -64,7 +66,7 @@ depends=('python') cd ${pkgbase} - python setup.py install --skip-build -O1 --root="$pkgdir" + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" }