# Depends on alsa-lib

# Exit on error:
set -e

wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.27.2.tar.bz2
tar xf alsa-utils-1.0.27.2.tar.bz2
cd alsa-utils-1.0.27.2

./configure --prefix= \
    --disable-xmlto

make install
cd ..
rm -rf alsa-utils-1.0.27.2
rm alsa-utils-1.0.27.2.tar.bz2

# Fix permissions for Package Users:
chmod g+w,o+t /share/alsa/speaker-test

echo
echo You can now add yourself to the audio group with:
echo usermod -a -G audio USER

exit 0
