Skip to content

Instantly share code, notes, and snippets.


Created Feb 18, 2017
What would you like to do?
pkgdesc="A featureful, general-purpose sound server"
arch=("i686" "x86_64" "armv7h")
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")
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)")
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")
pkgver() {
cd "$srcdir/$_pkgname"
# git describe --always | sed "s/-/./g"
printf "%s.%s.%s" "tanuk" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
build() {
cd "$srcdir/$_pkgname"
GIT_DESCRIBE_FOR_BUILD="$pkgver" ./ --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--localstatedir=/var \
--with-udev-rules-dir=/usr/lib/udev/rules.d \
--with-database=tdb \
--disable-hal-compat \
--disable-tcpwrap \
--disable-bluez4 \
--disable-rpath \
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir" install bashcompletiondir=/usr/share/bash-completion/completions
# 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 "$pkgdir/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 "$pkgdir/usr/bin/start-pulseaudio-x11"
rm "$pkgdir/etc/dbus-1/system.d/pulseaudio-system.conf"
install -Dm644 shell-completion/zsh/_pulseaudio "$pkgdir/usr/share/zsh/site-functions/_pulseaudio"

This comment has been minimized.

Copy link

@CharlSteynberg CharlSteynberg commented Aug 6, 2018

Thanks for this, I'm wrestling with the same issue you had; using SkullCandy Bluetooth headset. .. this is 2 years ago - surely an "official" fix should be available? I'll try this patch though.


This comment has been minimized.

Copy link

@jtiemer jtiemer commented Jan 1, 2019

Didn't check it out yet, but thanks. Wrangling with a Sony MDR-ZX330BT on an x230t.


This comment has been minimized.

Copy link

@Lyle-Tafoya Lyle-Tafoya commented Mar 11, 2019

I'm getting build errors. First one was a static definition of a non-statically declared method:

./pulsecore/memfd-wrappers.h:36:19: error: static declaration of ‘memfd_create’ follows non-static declaration
 static inline int memfd_create(const char *name, unsigned int flags) {

I fixed this by removing the keyword "static", but then ended up with the following error

modules/raop/raop_client.c:167:8: error: dereferencing pointer to incomplete type ‘RSA’ {aka ‘struct rsa_st’}
     rsa->n = BN_bin2bn(modules, size, NULL);

Trying desparately to get the mic working on my Plantronics Beatback Pro 2. It used to work fine, but I haven't managed to get it working for at least a year. Was hoping this would do the trick.


This comment has been minimized.

Copy link

@tigerjack tigerjack commented Oct 28, 2019

Same problem of @Lyle-Tafoya here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.