[arch-commits] Commit in solaar/trunk (PKGBUILD)

Frederik Schwan freswa at gemini.archlinux.org
Mon Jul 11 19:38:29 UTC 2022


    Date: Monday, July 11, 2022 @ 19:38:29
  Author: freswa
Revision: 1249635

switch to pep 517 build

Modified:
  solaar/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-11 19:35:47 UTC (rev 1249634)
+++ PKGBUILD	2022-07-11 19:38:29 UTC (rev 1249635)
@@ -12,26 +12,25 @@
 arch=('any')
 depends=('gtk3' 'libnotify' 'python-dbus' 'python-gobject' 'python-pyudev'
         'python-psutil' 'python-xlib' 'python-yaml' 'python-evdev')
-makedepends=('git')
+makedepends=(git python-build python-installer python-setuptools python-wheel)
 source=("git+https://github.com/pwr/${_name}.git#tag=${pkgver}?signed")
 sha512sums=('SKIP')
 validpgpkeys=('2FF2ACA9D97FF7B42CF8494A1E32E75672D6A196') # Peter F. Patel-Schneider (key generated for github) <pfpschneider at gmail.com>
 
 prepare() {
-  cd "${_name}"
+  cd ${_name}
   tools/po-compile.sh
 }
 
 build() {
-  cd "${_name}"
-  python setup.py build
+  cd ${_name}
+  python -m build --wheel --no-isolation
 }
 
 package() {
-  cd "${_name}"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}/"
+  cd ${_name}
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
   # udev
   rm -rf "${pkgdir}/etc"
   install -vDm 644 rules.d/42-logitech-unify-permissions.rules \



More information about the arch-commits mailing list