# Note: depends on pkg-config
# Note: depends on json-c
# Note: depends on libsndfile
# Note: depends on m4
# Note: depends on intltool
# Note: depends on gettext
# Note: depends on libtool
wget -c https://freedesktop.org/software/pulseaudio/releases/pulseaudio-12.0.tar.xz
tar -xJf pulseaudio-12.0.tar.xz
cd pulseaudio-12.0
mkdir -p build
cd build
../configure --prefix="/usr" --sysconfdir="/etc"  ||  ../configure --prefix="/usr" --sysconfdir="/etc" --without-caps
# Note: "am__append_84=" is to disable the consolekit module, which otherwise breaks pulseaudio unless you have consolekit installed
make am__append_84= # Doesn't mind -j#
make install am__append_84=
useradd -M -d /tmp -r -s /sbin/nologin pulse