mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
extra/pulseaudio to 4.0-5
This commit is contained in:
parent
916f5e5e7e
commit
e057be4673
2 changed files with 17 additions and 31 deletions
|
@ -11,24 +11,26 @@ pkgbase=pulseaudio
|
||||||
pkgname=(pulseaudio libpulse)
|
pkgname=(pulseaudio libpulse)
|
||||||
pkgdesc="A featureful, general-purpose sound server"
|
pkgdesc="A featureful, general-purpose sound server"
|
||||||
pkgver=4.0
|
pkgver=4.0
|
||||||
pkgrel=2
|
pkgrel=5
|
||||||
arch=(i686 x86_64)
|
arch=(i686 x86_64)
|
||||||
url="http://www.freedesktop.org/wiki/Software/PulseAudio"
|
url="http://www.freedesktop.org/wiki/Software/PulseAudio"
|
||||||
license=(GPL LGPL)
|
license=(LGPL AGPL3)
|
||||||
makedepends=(libasyncns libcap attr libxtst libsm libsamplerate libtool rtkit
|
makedepends=(libasyncns libcap attr libxtst libsm libsamplerate libtool rtkit
|
||||||
speex tdb systemd dbus avahi bluez4 bluez-libs gconf intltool jack sbc
|
speex tdb systemd dbus avahi bluez bluez-libs gconf intltool jack sbc
|
||||||
lirc-utils openssl fftw orc json-c gtk3 webrtc-audio-processing
|
lirc-utils openssl fftw orc json-c gtk3 webrtc-audio-processing
|
||||||
check)
|
check git)
|
||||||
options=(!emptydirs !libtool)
|
options=(!emptydirs !libtool)
|
||||||
source=(http://freedesktop.org/software/$pkgbase/releases/$pkgbase-$pkgver.tar.xz
|
#source=(http://freedesktop.org/software/$pkgbase/releases/$pkgbase-$pkgver.tar.xz
|
||||||
|
source=($pkgbase-$pkgver::git://anongit.freedesktop.org/pulseaudio/pulseaudio#commit=09e88de
|
||||||
pulseaudio.xinit)
|
pulseaudio.xinit)
|
||||||
sha256sums=('35ceb36bb1822fe54f0b5e4863b4f486769fdfb8ff2111f01fd8778928f9cdae'
|
sha256sums=('SKIP'
|
||||||
'a0db6cdc74fbf0ca10e2343c08e1e228f109221c6c0ff91b0bfade5c4bdf03cf')
|
'a0db6cdc74fbf0ca10e2343c08e1e228f109221c6c0ff91b0bfade5c4bdf03cf')
|
||||||
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgbase-$pkgver
|
cd $pkgbase-$pkgver
|
||||||
|
|
||||||
./configure --prefix=/usr \
|
./autogen.sh --prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--libexecdir=/usr/lib \
|
--libexecdir=/usr/lib \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
|
@ -49,13 +51,13 @@ package_pulseaudio() {
|
||||||
depends=("libpulse=$pkgver-$pkgrel" rtkit libltdl speex tdb systemd fftw orc
|
depends=("libpulse=$pkgver-$pkgrel" rtkit libltdl speex tdb systemd fftw orc
|
||||||
libsamplerate webrtc-audio-processing sbc)
|
libsamplerate webrtc-audio-processing sbc)
|
||||||
optdepends=('avahi: zeroconf support'
|
optdepends=('avahi: zeroconf support'
|
||||||
'bluez4: bluetooth support'
|
'bluez: bluetooth support'
|
||||||
'bluez-libs: bluetooth support'
|
'bluez-libs: bluetooth support'
|
||||||
'gconf: configuration through gconf (paprefs)'
|
'gconf: configuration through gconf (paprefs)'
|
||||||
'jack: jack support'
|
'jack: jack support'
|
||||||
'lirc-utils: infra-red support'
|
'lirc-utils: infra-red support'
|
||||||
'openssl: RAOP support'
|
'openssl: RAOP support'
|
||||||
'python2-pyqt: Equalizer GUI (qpaeq)')
|
'python-pyqt: Equalizer GUI (qpaeq)')
|
||||||
backup=(etc/pulse/{daemon.conf,default.pa,system.pa})
|
backup=(etc/pulse/{daemon.conf,default.pa,system.pa})
|
||||||
install=pulseaudio.install
|
install=pulseaudio.install
|
||||||
|
|
||||||
|
@ -67,10 +69,9 @@ package_pulseaudio() {
|
||||||
sed -e '/autospawn/iautospawn=no' \
|
sed -e '/autospawn/iautospawn=no' \
|
||||||
-i "$pkgdir/etc/pulse/client.conf"
|
-i "$pkgdir/etc/pulse/client.conf"
|
||||||
|
|
||||||
# Speed up pulseaudio shutdown
|
# Speed up pulseaudio shutdown so that it exits immediately with
|
||||||
# Lower resample quality, saves CPU
|
# the last user session (module-systemd-login keeps it alive)
|
||||||
sed -e '/exit-idle-time/iexit-idle-time=0' \
|
sed -e '/exit-idle-time/iexit-idle-time=0' \
|
||||||
-e '/resample-method/iresample-method=speex-float-0' \
|
|
||||||
-i "$pkgdir/etc/pulse/daemon.conf"
|
-i "$pkgdir/etc/pulse/daemon.conf"
|
||||||
|
|
||||||
# Disable cork-request module, can result in e.g. media players unpausing
|
# Disable cork-request module, can result in e.g. media players unpausing
|
||||||
|
@ -78,20 +79,10 @@ package_pulseaudio() {
|
||||||
sed -e 's|/usr/bin/pactl load-module module-x11-cork-request|#&|' \
|
sed -e 's|/usr/bin/pactl load-module module-x11-cork-request|#&|' \
|
||||||
-i "$pkgdir/usr/bin/start-pulseaudio-x11"
|
-i "$pkgdir/usr/bin/start-pulseaudio-x11"
|
||||||
|
|
||||||
# Make ConsoleKit optional
|
|
||||||
sed -e $'/load-module module-console-kit/{i.nofail\n;a.fail\n;}' \
|
|
||||||
-i "$pkgdir/etc/pulse/default.pa"
|
|
||||||
|
|
||||||
# Python fix
|
|
||||||
sed -i '1s:python$:&2:' "$pkgdir/usr/bin/qpaeq"
|
|
||||||
|
|
||||||
install -Dm755 "$srcdir/pulseaudio.xinit" "$pkgdir/etc/X11/xinit/xinitrc.d/pulseaudio"
|
install -Dm755 "$srcdir/pulseaudio.xinit" "$pkgdir/etc/X11/xinit/xinitrc.d/pulseaudio"
|
||||||
|
|
||||||
rm "$pkgdir/etc/dbus-1/system.d/pulseaudio-system.conf"
|
rm "$pkgdir/etc/dbus-1/system.d/pulseaudio-system.conf"
|
||||||
|
|
||||||
# cap is handled in .install
|
|
||||||
chmod 755 "$pkgdir/usr/lib/pulse/proximity-helper"
|
|
||||||
|
|
||||||
install -Dm644 shell-completion/pulseaudio-zsh-completion.zsh \
|
install -Dm644 shell-completion/pulseaudio-zsh-completion.zsh \
|
||||||
"$pkgdir/usr/share/zsh/site-functions/_pulseaudio"
|
"$pkgdir/usr/share/zsh/site-functions/_pulseaudio"
|
||||||
|
|
||||||
|
@ -129,6 +120,7 @@ package_libpulse() {
|
||||||
optdepends=('alsa-plugins: ALSA support'
|
optdepends=('alsa-plugins: ALSA support'
|
||||||
'avahi: zeroconf support')
|
'avahi: zeroconf support')
|
||||||
backup=(etc/pulse/client.conf)
|
backup=(etc/pulse/client.conf)
|
||||||
|
license=(LGPL)
|
||||||
|
|
||||||
mv "$srcdir"/libpulse/* "$pkgdir"
|
mv "$srcdir"/libpulse/* "$pkgdir"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
_common() {
|
|
||||||
setcap cap_net_raw=ep usr/lib/pulse/proximity-helper 2>/dev/null || chmod +s usr/lib/pulse/proximity-helper
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
_common
|
|
||||||
cat << MES
|
cat << MES
|
||||||
>>> See the wiki at http://wiki.archlinux.org/index.php/PulseAudio for details
|
>>> See the wiki at http://wiki.archlinux.org/index.php/PulseAudio for details
|
||||||
on configuring your system for PulseAudio.
|
on configuring your system for PulseAudio.
|
||||||
|
@ -13,12 +8,11 @@ MES
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
_common
|
|
||||||
cat << MES
|
cat << MES
|
||||||
>>> If you have per-user copies of configuration files (such as client.conf,
|
>>> If you have per-user copies of configuration files (such as client.conf,
|
||||||
daemon.conf or default.pa) in ~/.pulse/, make sure you keep them in sync
|
daemon.conf or default.pa) in ~/.config/pulse or ~/.pulse/, make sure you
|
||||||
with changes to the packaged files in /etc/pulse/. Otherwise, PulseAudio
|
keep them in sync with changes to the packaged files in /etc/pulse/.
|
||||||
may refuse to start due to configuration errors.
|
Otherwise, PulseAudio may refuse to start due to configuration errors.
|
||||||
MES
|
MES
|
||||||
if (( $(vercmp $2 3.0-3) < 0 )); then
|
if (( $(vercmp $2 3.0-3) < 0 )); then
|
||||||
cat << MES
|
cat << MES
|
||||||
|
|
Loading…
Reference in a new issue