[arch-commits] Commit in python-zita-audiotools/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Fri Apr 22 14:31:08 UTC 2022


    Date: Friday, April 22, 2022 @ 14:31:08
  Author: dvzrv
Revision: 1187331

upgpkg: python-zita-audiotools 1.3.0-1: Upgarde to 1.3.0.

Remove unneeded quotes and curly braces.
Switch to PEP517.
Add debug package.

Modified:
  python-zita-audiotools/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++--------------------
 1 file changed, 15 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-22 14:30:42 UTC (rev 1187330)
+++ PKGBUILD	2022-04-22 14:31:08 UTC (rev 1187331)
@@ -2,32 +2,27 @@
 
 _name=zita-audiotools
 pkgname=python-zita-audiotools
-pkgver=1.0.0
-pkgrel=10
+pkgver=1.3.0
+pkgrel=1
 pkgdesc="Tools for audio processing"
-arch=('x86_64')
+arch=(x86_64)
 url="https://kokkinizita.linuxaudio.org/linuxaudio"
-license=('GPL2' 'GPL3')
-depends=('gcc-libs' 'glibc' 'python-numpy')
-makedepends=('libsndfile' 'python-setuptools' 'zita-resampler')
-source=("https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${_name}-${pkgver}.tar.bz2")
-sha512sums=('c3ebd4c7bb5cb878066ec3de345cd8505c2606754a3ccd584f9ba8fe7e4492546cfa4fac3c4b1d508382952d4066d82d677adbfff4c990c59c0f04dc1d661cf6')
-b2sums=('2415afc311c5e8c721467c1be8c79eb8be6abdd5310fef0ef656b42ef593775dbd8238f03203e7a5bb5d1b7103a0b932c337076e28c29ad5ef78b9446093e17d')
+license=(GPL2 GPL3)
+depends=(gcc-libs glibc python-numpy)
+makedepends=(libsndfile python-build python-installer python-setuptools python-wheel zita-resampler)
+options=(debug)
+source=(https://kokkinizita.linuxaudio.org/linuxaudio/downloads/$_name-$pkgver.tar.bz2)
+sha512sums=('de4be5421bb2d24405ce10aaecdca631c47cd553a944518e638960360194331ebbc52b47c7e5cf271c561295e692b9896045a51a5bb75e8a6e0385e01c6a8993')
+b2sums=('8f3364e19f622b00c524bb90fa7a63b8e6e0904dde2cb3e0d67048e626c5b524d999fe46842973bb5745da05fd1521e7f64964f5a13be3e26f2e195e6b0fcd69')
 
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
 build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
 }
 
 package() {
-  depends+=('libsndfile.so' 'libzita-resampler.so')
+  depends+=(libsndfile.so libzita-resampler.so)
 
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --root="${pkgdir}"
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }



More information about the arch-commits mailing list