Date: Saturday, April 22, 2023 @ 12:33:38
  Author: alerque
Revision: 1448307

upgpkg: soundconverter 4.0.3-6; Refactor with PEP517 build

Modified:
  soundconverter/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-22 12:33:27 UTC (rev 1448306)
+++ PKGBUILD    2023-04-22 12:33:38 UTC (rev 1448307)
@@ -6,7 +6,7 @@
 
 pkgname=soundconverter
 pkgver=4.0.3
-pkgrel=5
+pkgrel=6
 pkgdesc='A simple sound converter application for GNOME'
 arch=(any)
 license=(GPL3)
@@ -17,7 +17,8 @@
          gst-python
          python-gobject
          python-setuptools) # https://bugs.archlinux.org/task/71201
-makedepends=(python-distutils-extra)
+makedepends=(python-{build,installer,wheel}
+             python-distutils-extra)
 #depends=(gst-plugins-base gst-plugins-good gtk3 libnotify python-gobject)
 #makedepends=(intltool python-distutils-extra)
 _archive="$pkgname-$pkgver"
@@ -26,13 +27,12 @@
 
 build() {
   cd "$_archive"
-  python setup.py build
+  python -m build -wn
 }
 
 package() {
   cd "$_archive"
-  python setup.py install --prefix="$pkgdir/usr"
-  # python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer -d "$pkgdir" dist/*.whl
   # pacman will compile schemas via a hook once placed into /usr,
   # don't let the setup.py script do it.
   rm "$pkgdir/usr/share/glib-2.0/schemas/gschemas.compiled"

Reply via email to