mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
extra/pulseaudio to 5.0-1
This commit is contained in:
parent
cba1ffbc79
commit
52e3393f73
3 changed files with 21 additions and 70 deletions
|
@ -10,38 +10,34 @@
|
||||||
pkgbase=pulseaudio
|
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=5.0
|
||||||
pkgrel=6
|
pkgrel=1
|
||||||
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=(LGPL AGPL3)
|
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 bluez bluez-libs gconf intltool jack sbc
|
speex tdb systemd dbus avahi bluez bluez-libs gconf intltool jack2-dbus sbc
|
||||||
lirc-utils openssl fftw orc json-c gtk3 webrtc-audio-processing
|
lirc-utils openssl xenstore fftw orc json-c gtk3 webrtc-audio-processing
|
||||||
check git)
|
check git)
|
||||||
options=(!emptydirs !libtool)
|
options=(!emptydirs)
|
||||||
#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
|
sha256sums=('99c13a8b1249ddbd724f195579df79484e9af6418cecf6a15f003a7f36caf939')
|
||||||
pulseaudio.xinit)
|
|
||||||
sha256sums=('SKIP'
|
|
||||||
'a0db6cdc74fbf0ca10e2343c08e1e228f109221c6c0ff91b0bfade5c4bdf03cf')
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd $pkgbase-$pkgver
|
cd $pkgbase-$pkgver
|
||||||
# ABI break https://bugs.freedesktop.org/show_bug.cgi?id=71047
|
|
||||||
git revert -n 16886bb b98a2e1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgbase-$pkgver
|
cd $pkgbase-$pkgver
|
||||||
|
|
||||||
./autogen.sh --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--libexecdir=/usr/lib \
|
--libexecdir=/usr/lib \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--with-udev-rules-dir=/usr/lib/udev/rules.d \
|
--with-udev-rules-dir=/usr/lib/udev/rules.d \
|
||||||
--with-database=tdb \
|
--with-database=tdb \
|
||||||
--disable-tcpwrap \
|
--disable-tcpwrap \
|
||||||
|
--disable-bluez4 \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--disable-default-build-tests \
|
--disable-default-build-tests \
|
||||||
--disable-neon-opt
|
--disable-neon-opt
|
||||||
|
@ -53,27 +49,24 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package_pulseaudio() {
|
package_pulseaudio() {
|
||||||
depends=("libpulse=$pkgver-$pkgrel" rtkit libltdl speex tdb systemd fftw orc
|
depends=("libpulse=$pkgver-$pkgrel" rtkit libltdl speex tdb fftw orc
|
||||||
libsamplerate webrtc-audio-processing sbc)
|
libsamplerate webrtc-audio-processing sbc)
|
||||||
optdepends=('avahi: zeroconf support'
|
optdepends=('pulseaudio-alsa: ALSA configuration (recommended)'
|
||||||
'bluez: bluetooth support'
|
'avahi: zeroconf publishing and discovery'
|
||||||
'bluez-libs: bluetooth support'
|
'bluez: Bluetooth'
|
||||||
'gconf: configuration through gconf (paprefs)'
|
'bluez-libs: Bluetooth'
|
||||||
'jack: jack support'
|
'gconf: paprefs configuration'
|
||||||
'lirc-utils: infra-red support'
|
'jack2-dbus: JACK support'
|
||||||
'openssl: RAOP support'
|
'lirc-utils: IR control'
|
||||||
'python-pyqt: Equalizer GUI (qpaeq)')
|
'openssl: RAOP (AirPlay) output'
|
||||||
|
'python-pyqt4: Equalizer GUI (qpaeq)'
|
||||||
|
'xenstore: Xen paravirtual output')
|
||||||
backup=(etc/pulse/{daemon.conf,default.pa,system.pa})
|
backup=(etc/pulse/{daemon.conf,default.pa,system.pa})
|
||||||
install=pulseaudio.install
|
|
||||||
|
|
||||||
cd $pkgbase-$pkgver
|
cd $pkgbase-$pkgver
|
||||||
make -j1 DESTDIR="$pkgdir" install \
|
make -j1 DESTDIR="$pkgdir" install \
|
||||||
bashcompletiondir=/usr/share/bash-completion/completions
|
bashcompletiondir=/usr/share/bash-completion/completions
|
||||||
|
|
||||||
# Disable autospawn by default
|
|
||||||
sed -e '/autospawn/iautospawn=no' \
|
|
||||||
-i "$pkgdir/etc/pulse/client.conf"
|
|
||||||
|
|
||||||
# Speed up pulseaudio shutdown so that it exits immediately with
|
# Speed up pulseaudio shutdown so that it exits immediately with
|
||||||
# the last user session (module-systemd-login keeps it alive)
|
# 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' \
|
||||||
|
@ -84,8 +77,6 @@ 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"
|
||||||
|
|
||||||
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"
|
||||||
|
|
||||||
install -Dm644 shell-completion/pulseaudio-zsh-completion.zsh \
|
install -Dm644 shell-completion/pulseaudio-zsh-completion.zsh \
|
||||||
|
@ -121,7 +112,7 @@ package_pulseaudio() {
|
||||||
|
|
||||||
package_libpulse() {
|
package_libpulse() {
|
||||||
pkgdesc="$pkgdesc (client library)"
|
pkgdesc="$pkgdesc (client library)"
|
||||||
depends=(dbus libasyncns libcap libxtst libsm libsndfile json-c)
|
depends=(dbus libasyncns libcap libxtst libsm libsndfile json-c systemd)
|
||||||
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)
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
post_install() {
|
|
||||||
cat << MES
|
|
||||||
>>> See the wiki at http://wiki.archlinux.org/index.php/PulseAudio for details
|
|
||||||
on configuring your system for PulseAudio.
|
|
||||||
|
|
||||||
>>> Make sure to install pulseaudio-alsa to configure ALSA for PulseAudio.
|
|
||||||
MES
|
|
||||||
}
|
|
||||||
|
|
||||||
post_upgrade() {
|
|
||||||
cat << MES
|
|
||||||
>>> If you have per-user copies of configuration files (such as client.conf,
|
|
||||||
daemon.conf or default.pa) in ~/.config/pulse or ~/.pulse/, make sure you
|
|
||||||
keep them in sync with changes to the packaged files in /etc/pulse/.
|
|
||||||
Otherwise, PulseAudio may refuse to start due to configuration errors.
|
|
||||||
MES
|
|
||||||
if (( $(vercmp $2 3.0-3) < 0 )); then
|
|
||||||
cat << MES
|
|
||||||
|
|
||||||
>>> Autospawn is now disabled by default. If you need to run PulseAudio outside
|
|
||||||
of an X session, either:
|
|
||||||
- Enable autospawn in client.conf, or
|
|
||||||
- Start it manually by executing 'pulseaudio --start'
|
|
||||||
MES
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
|
|
@ -1,12 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
case "$DESKTOP_SESSION" in
|
|
||||||
gnome|kde*|xfce*) # PulseAudio is started via XDG Autostart
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
# Extra checks in case DESKTOP_SESSION is not set correctly
|
|
||||||
if [[ -z $KDE_FULL_SESSION && -z $GNOME_DESKTOP_SESSION_ID ]]; then
|
|
||||||
/usr/bin/start-pulseaudio-x11
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
Loading…
Reference in a new issue