[arch-commits] Commit in python-jack-client/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Tue Jun 7 16:06:13 UTC 2022


    Date: Tuesday, June 7, 2022 @ 16:06:13
  Author: dvzrv
Revision: 1228495

archrelease: copy trunk to community-any

Added:
  python-jack-client/repos/community-any/PKGBUILD
    (from rev 1228494, python-jack-client/trunk/PKGBUILD)
Deleted:
  python-jack-client/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   83 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 43 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-07 16:06:04 UTC (rev 1228494)
+++ PKGBUILD	2022-06-07 16:06:13 UTC (rev 1228495)
@@ -1,40 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=JACK-Client
-pkgname=python-jack-client
-pkgver=0.5.3
-pkgrel=3
-pkgdesc="JACK Audio Connection Kit (JACK) Client for Python"
-arch=('any')
-url="https://github.com/spatialaudio/jackclient-python/"
-license=('MIT')
-depends=('jack' 'python-cffi')
-makedepends=('python-setuptools')
-optdepends=('python-numpy: Access input/output buffers as numpy arrays')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('7bafa6e375e96a34394e6b191b26306df446e47db78ede8e0dcb3e6953e9c200533e915559d0f9b00d358c34b0466fcea7dfbcfccff615f8f2ec947021321304')
-b2sums=('b683e135e7cc350087ef8effe670129a5ad58fd0cba9d66aedc575f9f71a6496c6511167f906b385bb42355e9cb787986d02e643c40849bec2d615733fe070d2')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
-  # license
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
-  # docs
-  install -vDm 644 {CONTRIBUTING,NEWS,README}.rst \
-    -t "${pkgdir}/usr/share/doc/${pkgname}/"
-  # examples
-  install -vDm 755 examples/*.py \
-    -t "${pkgdir}/usr/share/doc/${pkgname}/examples/"
-}

Copied: python-jack-client/repos/community-any/PKGBUILD (from rev 1228494, python-jack-client/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-07 16:06:13 UTC (rev 1228495)
@@ -0,0 +1,43 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=JACK-Client
+pkgname=python-jack-client
+pkgver=0.5.4
+pkgrel=1
+pkgdesc="JACK Audio Connection Kit (JACK) Client for Python"
+arch=(any)
+url="https://github.com/spatialaudio/jackclient-python/"
+license=(MIT)
+depends=(jack python-cffi)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(jack2 procps-ng python-pytest util-linux)
+optdepends=('python-numpy: Access input/output buffers as numpy arrays')
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('bc75d1b58a10c855ab26fbb123ed6774f182a06501e6f31efffdd7c82d384761053dddd7af8315969f67421e4ba17bfc0b49f63f0454c8cc18b4b8385b928d26')
+b2sums=('3130342714f0634abacc74c9aa4a7edac70087db82439197717c104e3b0cafc00916fc8d425b2b99c98df82d1c7a2c44a4df8021e84a2209301c19f5b1ae9d96')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+
+  cd $_name-$pkgver
+  # install to temporary location
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+  # start dummy jack server
+  jackd -d dummy &
+  pytest -vv
+  kill -9 $(pgrep jackd)
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -vDm 644 {CONTRIBUTING,NEWS,README}.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 755 examples/*.py -t "$pkgdir/usr/share/doc/$pkgname/examples/"
+}



More information about the arch-commits mailing list