cd
test -f installed/aumix-2.8.tar.bz2 && mv installed/aumix-2.8.tar.bz2 .
test ! -f aumix-2.8.tar.bz2 &&
wget http://jpj.net/~trevor/aumix/aumix-2.8.tar.bz2
# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "dc3fc7209752207c23e7c94ab886b340 aumix-2.8.tar.bz2" | md5sum -c
# Verify tarball w/ sha1sum:
# (this also came from my gpg-verified tarball)
echo "5cea563ae91f628433a1950a36efd23681da4bf4 aumix-2.8.tar.bz2" | \
sha1sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "aumix-*" -exec rm -r {} \;
tar xjvf ~/aumix-2.8.tar.bz2
cd aumix-2.8
test $UID = 0 && chown -R root:root .
# I use --without-gtk1 below because I have both gtk 1.x and 2.x installed.
# If you only have 1.x installed and want to build in support for it, remove
# that from the configure line.
# If you use alsa, apply this patch to fix where aumix looks for it's
# include files (sys/alsasoundlib.h -> alsa/alsasoundlib.h):
wget -nc http://englanders.cc/pub/linux/patches/aumix-2.8.alsa.patch &&
patch -p1 < aumix-2.8.alsa.patch
./configure --prefix=/usr --without-gtk1 --disable-nls
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg aumix
make install
# Slackware doesn't install this, puts it in /usr/doc/aumix-2.8 named
# mute.sh instead. If you want mute from the commandline and you use ALSA
# you can run: 'amixer set Master mute' to mute and the same with 'unmute'
# to un-mute.
rm -f /usr/bin/mute