fix pipewire: add a conf

This commit is contained in:
2026-01-19 14:47:21 -05:00
parent 6ee7421691
commit 2f2b0a7cde
2 changed files with 11 additions and 0 deletions

View File

@@ -34,18 +34,21 @@ sources=("${pkgname}-${pkgver}.tar.bz2"
"${pkgname}-1.4.7-0001-don-t-include-standard-C-headers-inside-of-extern-C.patch.xz"
"99-pipewire-default-hook.conf"
"acct-group-pipewire.conf"
"gentoo-sound-server-enable-audio-bluetooth.conf"
${_patches[@]}
)
urls=("https://gitlab.freedesktop.org/${pkgname}/${pkgname}/-/archive/${pkgver}/${sources[0]}"
"https://dev.gentoo.org/~sam/distfiles/media-video/${pkgname}/${sources[1]}"
"99-pipewire-default-hook.conf"
"acct-group-pipewire.conf"
"gentoo-sound-server-enable-audio-bluetooth.conf"
"${_patches[@]}"
)
sha512sums=("369054d920133904a8df709b1be05f9ef0e7e99e1ae10e1d200315ce1200e20d5e20a91f40dd17dd3177eef59de7d47dfdd6161ec6f057b78140690fcfcc1c2e"
"fbd9644a5df81ee4bc9687f6a8b69a0bf12deef43d749c9c5cbb976f461771deeae4bd13340a6acaffae4b0187221cf734be2b3b62408a4ce79d70575a7e664b"
"4e512c62b7627fbe9e48afbbf171bd2b8d4fb8b231492cb1ea2d90ac474212c25e0f8ba3389b1df1108a46f243f2e1f3a3eaf2d147a7968cec82a8a49f5fd1b7"
"65901c2bef4c769757631487231d43d4bc584c9202d280179696736e4985b195f14ab5a935d59d36f67cfa094e6749ac1f1d1aa2e9943ca746415eb1ff550b69"
"fede2c9dc6256894aa29cf72ede8ba42874cf0706d81031d724ca5b43fa424d09009ec6eb685737623f3c5eadb9b095060b0ce48b7325d68d4b07225b07aa2fe"
"${_patch_sums[@]}"
)
@@ -157,6 +160,8 @@ src_install() {
ln -sv ../../../usr/share/alsa/alsa.conf.d/50-pipewire.conf "${pkgdir}"/etc/alsa/conf.d/50-pipewire.conf
ln -sv ../../../usr/share/alsa/alsa.conf.d/99-pipewire-default-hook.conf "${pkgdir}"/etc/alsa/conf.d/99-pipewire-default-hook.conf
install -vDm644 "${filedir}/gentoo-sound-server-enable-audio-bluetooth.conf" -t "${pkgdir}/etc/wireplumber/wireplumber.conf.d"
install -vDm644 "${filedir}/acct-group-pipewire.conf" -t "${pkgdir}/usr/lib/sysusers.d/"
}

View File

@@ -0,0 +1,6 @@
wireplumber.profiles = {
main = {
hardware.audio = required
hardware.bluetooth = required
}
}