diff options
author | Andrew Sun | 2023-07-30 13:23:00 -0400 |
---|---|---|
committer | Andrew Sun | 2023-07-30 13:23:00 -0400 |
commit | b4466a4c610d3e031118d64083077936c864b15d (patch) | |
tree | 1889797df777becbcc1f06704d167aaae3c27fe1 /PKGBUILD | |
parent | 7a9464240ac73fafa29dbfc61f278f87fe409f62 (diff) | |
download | aur-b4466a4c610d3e031118d64083077936c864b15d.tar.gz |
fix build
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -16,19 +16,24 @@ _pydeps=(cbor2 yaml) depends=(python "${_pydeps[@]/#/python-}") -makedepends=(python-setuptools) +makedepends=(python-build python-installer python-wheel python-poetry-core) options=('!emptydirs') _archive="$pkgname-$pkgver" source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$_archive.tar.gz") sha256sums=('1cb2d4de31763bbac175f0e493e195568f956318caa70ac3359ff794932628cf') +prepare() { + cd "$_archive" + rm -rf dist/ +} + build() { - cd "$_archive" - python setup.py build + cd "$_archive" + python -m build --wheel --no-isolation } package() { - cd "$_archive" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE + cd "$_archive" + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE } |