cd
test -f installed/libsidplay-*.tgz &&
mv installed/libsidplay-*.tgz .
test ! -f libsidplay-*.tgz &&
wget http://www.geocities.com/SiliconValley/Lakes/5147/sidplay/packages/\
libsidplay-1.36.59.tgz
# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "37c51ba4bd57164b1b0bb7b43b9adece libsidplay-1.36.59.tgz" | md5sum -c
# Verify tarball w/ sha1sum:
# (this also came from my gpg-verified tarball)
echo "66056b55dc96b9ae1aab542f0260d1e6db158e51 libsidplay-1.36.59.tgz" | \
sha1sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libsidplay-*" -exec rm -r {} \;
tar xzvf ~/libsidplay-1.36.59.tgz
cd libsidplay-1.36.59
test $UID = 0 && chown -R root:root .
./configure
make
su -c "make install ; ldconfig"
cd
mkdir -p -m 0700 installed
rm -f installed/libsidplay-*.tar.*
mv libsidplay-1.36.59.tgz installed/
# If you ever want to uninstall libsidplay, this should do it:
cd
su
test -d src/libsidplay-* && ( cd src/libsidplay-* ; make uninstall )
rm -f /usr/lib/libsidplay.*
test -d /usr/include/sidplay && rm -r /usr/include/sidplay
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libsidplay-*" -exec rm -r {} \;
rm -f ~/installed/libsidplay-*.tar.*