diff options
authorBart Ribbers <bribbers@disroot.org>2021-02-20 17:21:51 +0100
committerBart Ribbers <bribbers@disroot.org>2021-03-02 14:47:44 +0000
commite19feaf78f75473de70ad64d84954f0389f21d44 (patch)
parentc930087dd7e3d079f6266d3928b4752fd13f1d3f (diff)
community/pipewire: make -pulse provide PulseAudio
This way it can be used as a full PulseAudio replacement, which you want anyway when you install this package
3 files changed, 21 insertions, 1 deletions
diff --git a/community/pipewire/APKBUILD b/community/pipewire/APKBUILD
index ff03ac9e20..c900bb0230 100644
--- a/community/pipewire/APKBUILD
+++ b/community/pipewire/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgdesc="Multimedia processing graphs"
arch="all !s390x !mips64" # unit tests fail on big-endian
@@ -45,6 +45,10 @@ package() {
pulse() {
pkgdesc="Pulseaudio support for pipewire"
+ install="$subpkgname.post-install $subpkgname.post-upgrade"
+ provides="pulseaudio"
+ provider_priority=1
amove usr/bin/pipewire-pulse
amove usr/lib/pipewire-0.3/libpipewire-module-protocol-pulse.so
amove etc/pipewire/media-session.d/with-pulseaudio
diff --git a/community/pipewire/pipewire-pulse.post-install b/community/pipewire/pipewire-pulse.post-install
new file mode 100644
index 0000000000..5b46277acf
--- /dev/null
+++ b/community/pipewire/pipewire-pulse.post-install
@@ -0,0 +1,10 @@
+cat <<EOF
+Even though pipewire-pulse is installed, pipewire will by default not launch it and requires manual configuration.
+Open the configuration file with a text editor, /etc/pipewire/pipewire.conf, and uncomment the relevant line on the bottom of the file.
+Note that the actual line may change over time.
+Since the configuration file often changes format at this stage of development, make sure you keep it up-to-date with the upstream format!
+apk will always install an updated configuration file to /etc/pipewire/pipewire.conf.apk-new, which can be checked for any changes.
diff --git a/community/pipewire/pipewire-pulse.post-upgrade b/community/pipewire/pipewire-pulse.post-upgrade
new file mode 100644
index 0000000000..93f07532a3
--- /dev/null
+++ b/community/pipewire/pipewire-pulse.post-upgrade
@@ -0,0 +1,6 @@
+cat <<EOF
+Since pipewire at this stage of development often changes file format, make sure your modifications to enable pipewire-pulse are still in the proper format.
+If any changes to the default config file have been made upstream you will be able to check these in /etc/pipewire/pipewire.conf.apk-new