diff options
author | Robin Lange | 2023-06-24 16:20:18 +1000 |
---|---|---|
committer | Robin Lange | 2023-06-24 16:20:18 +1000 |
commit | f45c5de68d5ae1b61b991ab56badc98031209823 (patch) | |
tree | f88ced6a76515a4ba9a12018e9a087303f3206ff | |
parent | 2bc7a22438de739823277c578286159a92ee52cf (diff) | |
download | aur-f45c5de68d5ae1b61b991ab56badc98031209823.tar.gz |
PEP 517 compliance
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 8 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = optimus-manager pkgdesc = Management utility to handle GPU switching for Optimus laptops pkgver = 1.5 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Askannz/optimus-manager arch = any license = MIT @@ -9,6 +9,9 @@ pkgbase = optimus-manager makedepends = git depends = python3 depends = python-setuptools + depends = python-build + depends = python-installer + depends = python-wheel depends = python-dbus depends = glxinfo depends = xorg-xrandr @@ -2,14 +2,14 @@ pkgname=optimus-manager pkgver=1.5 -pkgrel=1 +pkgrel=2 pkgdesc="Management utility to handle GPU switching for Optimus laptops" arch=('any') url="https://github.com/Askannz/optimus-manager" license=('MIT') conflicts=("optimus-manager-git") provides=("optimus-manager=$pkgver") -depends=('python3' 'python-setuptools' 'python-dbus' 'glxinfo' 'xorg-xrandr') +depends=('python3' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'python-dbus' 'glxinfo' 'xorg-xrandr') optdepends=('bbswitch: alternative power switching method' 'acpi_call: alternative power switching method' 'xf86-video-intel: provides the Xorg intel driver') @@ -34,7 +34,7 @@ sha256sums=('SKIP') build() { cd "${srcdir}/optimus-manager/" - /usr/bin/python3 setup.py build + python -m build --wheel --no-isolation } @@ -70,6 +70,6 @@ package() { install -Dm755 config/nvidia-enable.sh "$pkgdir/etc/optimus-manager/nvidia-enable.sh" install -Dm755 config/nvidia-disable.sh "$pkgdir/etc/optimus-manager/nvidia-disable.sh" - /usr/bin/python3 setup.py install --root="$pkgdir/" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl } |