From 66797219ae6049db1c40051d829a832ad333fb7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= <ablocorrea@hotmail.com> Date: Wed, 8 May 2024 10:48:32 +0200 Subject: [PATCH] community/wireplumber: add subpackage to ignore audio if pulseaudio available Fixes #16094 --- community/wireplumber/50-pulseaudio.conf | 6 ++++++ community/wireplumber/APKBUILD | 21 ++++++++++++++++----- 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 community/wireplumber/50-pulseaudio.conf diff --git a/community/wireplumber/50-pulseaudio.conf b/community/wireplumber/50-pulseaudio.conf new file mode 100644 index 000000000000..986473afe218 --- /dev/null +++ b/community/wireplumber/50-pulseaudio.conf @@ -0,0 +1,6 @@ +wireplumber.profiles = { + main = { + hardware.audio = disabled + hardware.bluetooth = disabled + } +} diff --git a/community/wireplumber/APKBUILD b/community/wireplumber/APKBUILD index d861ac9455e0..4150940eb2d6 100644 --- a/community/wireplumber/APKBUILD +++ b/community/wireplumber/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: team/alpine-desktop <bribbers@disroot.org> pkgname=wireplumber pkgver=0.5.2 -pkgrel=0 +pkgrel=1 pkgdesc="Session / policy manager implementation for PipeWire" url="https://pipewire.org/" arch="all" @@ -24,14 +24,17 @@ checkdepends=" " subpackages=" $pkgname-dbg - $pkgname-libs $pkgname-dev - $pkgname-logind + $pkgname-doc $pkgname-lang + $pkgname-libs + $pkgname-logind + $pkgname-pulseaudio $pkgname-zsh-completion - $pkgname-doc " -source="https://gitlab.freedesktop.org/PipeWire/wireplumber/-/archive/$pkgver/wireplumber-$pkgver.tar.gz" +source="https://gitlab.freedesktop.org/PipeWire/wireplumber/-/archive/$pkgver/wireplumber-$pkgver.tar.gz + 50-pulseaudio.conf + " provides="pipewire-session-manager" provider_priority=50 @@ -74,6 +77,14 @@ logind() { amove usr/lib/wireplumber-0.5/libwireplumber-module-logind.so } +pulseaudio() { + install_if="$pkgname=$pkgver-r$pkgrel pulseaudio !pipewire-pulse" + + install -Dm644 "$srcdir"/50-pulseaudio.conf + -t "$subpkgdir"/usr/share/wireplumber/wireplumber.conf.d +} + sha512sums=" d9228a4ca1be08d0358af9fe9fb5475b04d5e93c5ce0188928bc45f0967ad25a60b458bc33844b0a1cb728b9a57d35c6172948ddcb387119b1939677039aadc7 wireplumber-0.5.2.tar.gz +ebb7700018cf64fe6dcb747365cd2fb816deb6e06e7368af779284b51b1f0749e24f8e70b0b72fa6bff4178a02af934f728c3b115c8c1f77aa1a3490879af731 50-pulseaudio.conf " -- GitLab