# wavplay 1.5
# ===========
# Prerequisites:
# XFree86 or X.org (if you build the X client)
cd
test -f installed/wavplay-1.5.tar.gz && mv installed/wavplay-1.5.tar.gz .
test ! -f wavplay-1.5.tar.gz &&
wget http://home.cogeco.ca/~ve3wwg/wavplay-1.5.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "wavplay-*" -exec rm -r {} \;
tar xzvf ~/wavplay-1.5.tar.gz
cd wavplay-1.5
test $UID = 0 && chown -R root:root .
# If make fails with an error like this:
# file.c:382: error: conflicting types for 'WavOpenForWrite'
# wavplay.h:525: error: previous declaration of 'WavOpenForWrite' was here
# apply this patch:
wget -nc http://englanders.cc/pub/linux/patches/wavplay-1.5.patch &&
patch -p0 < wavplay-1.5.patch
# If you don't want to build the X client, run 'make no_x' and 'make
# install_no_x' instead of make and make install
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/wavplay-*.tar.*
mv wavplay-1.5.tar.gz installed/