# Maintainer: Mark Wagie # Contributor: WorMzy Tykashi pkgname=python-pulsectl _name=${pkgname#python-} pkgver=24.4.0 pkgrel=1 epoch=1 pkgdesc="Python high-level interface and ctypes-based bindings for PulseAudio (libpulse)" arch=('any') url="https://github.com/mk-fg/python-pulse-control" license=('MIT') depends=('python' 'libpulse') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') conflicts=('python-pulse-control') source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha256sums=('697ed50e7d452e78678ae38e2ab935843008bec448955283cd0fb362867e3165') build() { cd "$_name-$pkgver" python -m build --wheel --no-isolation } package() { cd "$_name-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/" }