summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorQue Quotion2019-02-14 01:04:01 +0900
committerQue Quotion2019-02-14 01:04:01 +0900
commit751be60163e40d1ab5679032877573b51932b32a (patch)
treebcca8b0329aab8e59a5a99df4459614ed1b04e05
parentef394c54e2cafd8ce245b3fc0ce8773f8d28f6f4 (diff)
downloadaur-751be60163e40d1ab5679032877573b51932b32a.tar.gz
Match configuration with [extra] package and bring up to speed on dependencies; removes pulseaudio-xen and pulseaudio-gconf
-rwxr-xr-x.SRCINFO94
-rw-r--r--PKGBUILD59
2 files changed, 94 insertions, 59 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7564a7f242f..b5fe6a3c476 100755
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = pulseaudio-git
- pkgdesc = A featureful, general-purpose sound server
- pkgver = v8.0.76.gb5e5475
+ pkgdesc = A featureful, general-purpose sound server (development version)
+ pkgver = v12.0.259.g334ae350b
pkgrel = 1
url = http://pulseaudio.org/
arch = i686
@@ -9,63 +9,75 @@ pkgbase = pulseaudio-git
license = GPL
license = LGPL
makedepends = git
+ makedepends = libasyncns
+ makedepends = libcap
+ makedepends = libxtst
+ makedepends = libsm
+ makedepends = libsndfile
+ makedepends = libtool
+ makedepends = libsoxr
makedepends = attr
+ makedepends = rtkit
+ makedepends = speexdsp
+ makedepends = tdb
+ makedepends = systemd
+ makedepends = jack2-dbus
+ makedepends = dbus
makedepends = avahi
makedepends = bluez
- makedepends = gconf
+ makedepends = bluez-libs
makedepends = intltool
+ makedepends = sbc
+ makedepends = lirc
makedepends = openssl
- makedepends = bluez-libs
- depends = rtkit
+ makedepends = fftw
+ makedepends = orc
+ makedepends = gtk3
+ makedepends = webrtc-audio-processing
+ makedepends = check
+ makedepends = autoconf-archive
depends = libltdl
- depends = speex
- depends = tdb
- depends = systemd
- depends = fftw
- depends = orc
- depends = libsamplerate
- depends = webrtc-audio-processing
- depends = sbc
+ depends = libsoxr
depends = libasyncns
+ depends = libcap
depends = libxtst
depends = libsm
depends = libsndfile
- depends = json-c
+ depends = rtkit
+ depends = speexdsp
+ depends = tdb
+ depends = orc
+ depends = webrtc-audio-processing
+ depends = dbus
+ depends = systemd
+ depends = avahi
+ depends = openssl
+ depends = lirc
+ depends = jack
+ depends = bluez
+ depends = bluez-libs
+ depends = sbc
+ depends = python-pyqt5
+ depends = python-dbus
+ depends = python-sip
+ depends = fftw
optdepends = alsa-plugins: ALSA support
- optdepends = avahi: zeroconf support
- optdepends = bluez: bluetooth support
- optdepends = gconf: configuration through gconf
- optdepends = jack: jack support
+ optdepends = pulseaudio-alsa: ALSA configuration (recommended)
optdepends = lirc-utils: infra-red support
- optdepends = openssl: RAOP support
- optdepends = python-pyqt4: Equalizer GUI (qpaeq)
provides = pulseaudio
- provides = libpulse
provides = pulseaudio-zeroconf
- provides = pulseaudio-gconf
- provides = pulseaudio-equalizer
- provides = pulseaudio-bluetooth
- provides = pulseaudio-jack
- provides = pulseaudio-xen
provides = pulseaudio-lirc
+ provides = pulseaudio-jack
+ provides = pulseaudio-bluetooth
+ provides = pulseaudio-equalizer
+ provides = libpulse
conflicts = pulseaudio
- conflicts = libpulse
conflicts = pulseaudio-zeroconf
- conflicts = pulseaudio-gconf
- conflicts = pulseaudio-equalizer
- conflicts = pulseaudio-bluetooth
- conflicts = pulseaudio-jack
- conflicts = pulseaudio-xen
conflicts = pulseaudio-lirc
- replaces = pulseaudio
- replaces = libpulse
- replaces = pulseaudio-zeroconf
- replaces = pulseaudio-gconf
- replaces = pulseaudio-equalizer
- replaces = pulseaudio-bluetooth
- replaces = pulseaudio-jack
- replaces = pulseaudio-xen
- replaces = pulseaudio-lirc
+ conflicts = pulseaudio-jack
+ conflicts = pulseaudio-bluetooth
+ conflicts = pulseaudio-equalizer
+ conflicts = libpulse
options = !emptydirs
backup = etc/pulse/daemon.conf
backup = etc/pulse/default.pa
diff --git a/PKGBUILD b/PKGBUILD
index a451d0975a3..78cb4e67f21 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,27 +9,25 @@
_pkgname="pulseaudio"
pkgname="$_pkgname-git"
-pkgdesc="A featureful, general-purpose sound server"
-pkgver=v8.0.76.gb5e5475
+pkgdesc="A featureful, general-purpose sound server (development version)"
+pkgver=v12.0.259.g334ae350b
pkgrel=1
arch=("i686" "x86_64" "armv7h")
url="http://pulseaudio.org/"
license=("GPL" "LGPL")
-depends=("rtkit" "libltdl" "speex" "tdb" "systemd" "fftw" "orc" "libsamplerate"
- "webrtc-audio-processing" "sbc" "libasyncns" "libxtst" "libsm" "libsndfile" "json-c")
-makedepends=("git" "attr" "avahi" "bluez" "gconf" "intltool" "openssl" "bluez-libs")
+depends=(lib{ltdl,soxr,asyncns,cap,xtst,sm,sndfile} "rtkit" "speexdsp" "tdb"
+ "orc" "webrtc-audio-processing" "dbus" "systemd" "avahi" "openssl"
+ "lirc" "jack" bluez{,-libs} "sbc" python-{pyqt5,dbus,sip} "fftw") #json-c
+makedepends=("git" lib{asyncns,cap,xtst,sm,sndfile,tool,soxr} "attr" "rtkit"
+ "speexdsp" "tdb" "systemd" {jack2-,}dbus "avahi" bluez{,-libs}
+ "intltool" "sbc" "lirc" "openssl" "fftw" "orc" "gtk3"
+ "webrtc-audio-processing" "check" "autoconf-archive") #gconf
optdepends=("alsa-plugins: ALSA support"
- "avahi: zeroconf support"
- "bluez: bluetooth support"
- "gconf: configuration through gconf"
- "jack: jack support"
- "lirc-utils: infra-red support"
- "openssl: RAOP support"
- "python-pyqt4: Equalizer GUI (qpaeq)")
+ "pulseaudio-alsa: ALSA configuration (recommended)"
+ "lirc-utils: infra-red support")
backup=(etc/pulse/{daemon.conf,default.pa,system.pa,client.conf})
-provides=("pulseaudio" "libpulse" "pulseaudio-zeroconf" "pulseaudio-gconf" "pulseaudio-equalizer" "pulseaudio-bluetooth" "pulseaudio-jack" "pulseaudio-xen" "pulseaudio-lirc")
-conflicts=("pulseaudio" "libpulse" "pulseaudio-zeroconf" "pulseaudio-gconf" "pulseaudio-equalizer" "pulseaudio-bluetooth" "pulseaudio-jack" "pulseaudio-xen" "pulseaudio-lirc")
-replaces=("pulseaudio" "libpulse" "pulseaudio-zeroconf" "pulseaudio-gconf" "pulseaudio-equalizer" "pulseaudio-bluetooth" "pulseaudio-jack" "pulseaudio-xen" "pulseaudio-lirc")
+provides=(pulseaudio{,-{zeroconf,lirc,jack,bluetooth,equalizer}} "libpulse") #"pulseaudio-xen" "pulseaudio-gconf"
+conflicts=(pulseaudio{,-{zeroconf,lirc,jack,bluetooth,equalizer}} "libpulse") #"pulseaudio-xen" "pulseaudio-gconf"
options=(!emptydirs)
source=("git+https://github.com/pulseaudio/pulseaudio.git")
sha256sums=("SKIP")
@@ -39,20 +37,29 @@ pkgver() {
git describe --always | sed "s/-/./g"
}
+prepare() {
+ cd "$srcdir/$_pkgname"
+ NOCONFIGURE=1 ./bootstrap.sh
+}
+
build() {
cd "$srcdir/$_pkgname"
- ./autogen.sh --prefix=/usr \
+ ./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--localstatedir=/var \
--with-udev-rules-dir=/usr/lib/udev/rules.d \
+ --with-pulsedsp-location='/usr/\\$$LIB/pulseaudio' \
--with-database=tdb \
- --disable-hal-compat \
--disable-tcpwrap \
--disable-bluez4 \
--disable-rpath \
- --disable-default-build-tests
+ --disable-default-build-tests \
+ DATADIRNAME=share
+
+ # fight unused direct deps
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
@@ -65,10 +72,26 @@ package() {
# the last user session (module-systemd-login keeps it alive)
sed -e "/exit-idle-time/iexit-idle-time=0" -i "$pkgdir/etc/pulse/daemon.conf"
+ # Assumes that any volume adjustment is intended by the user, who can control
+ # each app's volume. Misbehaving clients can trigger earsplitting volume
+ # jumps. App volumes can diverge wildly and cause apps without their own
+ # volume control to fall below sink volume; a sink-only volume control will
+ # suddenly be unable to make such an app loud enough.
+ sed -e '/flat-volumes/iflat-volumes = no' \
+ -i "$pkgdir/etc/pulse/daemon.conf"
+
+ # Superseded by socket activation
+ sed -e '/autospawn/iautospawn = no' \
+ -i "$pkgdir/etc/pulse/client.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 "$pkgdir/usr/bin/start-pulseaudio-x11"
+ # Required by qpaeq
+ sed -e '/Load several protocols/aload-module module-dbus-protocol' \
+ -i "$pkgdir/etc/pulse/default.pa"
+
rm "$pkgdir/etc/dbus-1/system.d/pulseaudio-system.conf"
install -Dm644 shell-completion/zsh/_pulseaudio "$pkgdir/usr/share/zsh/site-functions/_pulseaudio"