mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
pulseaudio: misc tweaks from Arch.
This commit is contained in:
parent
69ddc72e70
commit
87e9978739
2 changed files with 18 additions and 23 deletions
|
@ -3,24 +3,8 @@ post)
|
||||||
cat <<_EOF
|
cat <<_EOF
|
||||||
=====================================================================
|
=====================================================================
|
||||||
|
|
||||||
To make ALSA use PulseAudio globally in your system you'd have to
|
To make ALSA use PulseAudio globally in your system install the
|
||||||
create /etc/asound.conf with the following contents:
|
`alsa-plugins` package.
|
||||||
|
|
||||||
pcm.!default {
|
|
||||||
type pulse
|
|
||||||
}
|
|
||||||
|
|
||||||
ctl.!default {
|
|
||||||
type pulse
|
|
||||||
}
|
|
||||||
|
|
||||||
pcm.pulse {
|
|
||||||
type pulse
|
|
||||||
}
|
|
||||||
|
|
||||||
ctl.pulse {
|
|
||||||
type pulse
|
|
||||||
}
|
|
||||||
|
|
||||||
=====================================================================a
|
=====================================================================a
|
||||||
_EOF
|
_EOF
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'pulseaudio'
|
# Template file for 'pulseaudio'
|
||||||
pkgname=pulseaudio
|
pkgname=pulseaudio
|
||||||
version=4.0
|
version=4.0
|
||||||
revision=4
|
revision=5
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-oss-output --disable-oss-wrapper --disable-tcpwrap
|
configure_args="--disable-oss-output --disable-oss-wrapper --disable-tcpwrap
|
||||||
--enable-jack --disable-lirc --disable-hal-compat --disable-gconf --enable-orc
|
--enable-jack --disable-lirc --disable-hal-compat --disable-gconf --enable-orc
|
||||||
|
@ -32,12 +32,24 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall ${FILESDIR}/pulseaudio.xinit 755 \
|
vinstall ${FILESDIR}/pulseaudio.xinit 755 etc/X11/xinit/xinitrc.d pulseaudio
|
||||||
etc/X11/xinit/xinitrc.d pulseaudio
|
|
||||||
rm -f ${DESTDIR}/etc/dbus-1/system.d/pulseaudio-system.conf
|
rm -f ${DESTDIR}/etc/dbus-1/system.d/pulseaudio-system.conf
|
||||||
|
|
||||||
vmkdir usr/share/bash-completion/completions
|
vmkdir usr/share/bash-completion/completions
|
||||||
mv ${DESTDIR}/etc/bash_completion.d/pulseaudio-bash-completion.sh \
|
mv ${DESTDIR}/etc/bash_completion.d/pulseaudio-bash-completion.sh \
|
||||||
${DESTDIR}/usr/share/bash-completion/completions/pulseaudio
|
${DESTDIR}/usr/share/bash-completion/completions/pulseaudio
|
||||||
|
|
||||||
|
# Disable autospawn by default
|
||||||
|
sed -e '/autospawn/iautospawn=no' -i ${DESTDIR}/etc/pulse/client.conf
|
||||||
|
|
||||||
|
# Speed up pulseaudio shutdown so that it exits immediately with
|
||||||
|
# the last user session (module-systemd-login keeps it alive)
|
||||||
|
sed -e '/exit-idle-time/iexit-idle-time=0' -i ${DESTDIR}/etc/pulse/daemon.conf
|
||||||
|
|
||||||
|
# Disable cork-request module, can result in e.g. media players unpausing
|
||||||
|
# when there's a Skype call incoming
|
||||||
|
sed -e 's|/usr/bin/pactl load-module module-x11-cork-request|#&|' \
|
||||||
|
-i ${DESTDIR}/usr/bin/start-pulseaudio-x11
|
||||||
}
|
}
|
||||||
|
|
||||||
libpulseaudio_package() {
|
libpulseaudio_package() {
|
||||||
|
@ -51,8 +63,7 @@ libpulseaudio_package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pulseaudio-devel_package() {
|
pulseaudio-devel_package() {
|
||||||
depends="libasyncns-devel dbus-devel libXtst-devel
|
depends="libasyncns-devel dbus-devel libXtst-devel libpulseaudio>=${version}_${revision}"
|
||||||
libpulseaudio-${version}_${revision}"
|
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
|
Loading…
Add table
Reference in a new issue