# mp3info 0.8.4
# =============
cd
test -f installed/mp3info-0.8.4.tgz &&
mv installed/mp3info-0.8.4.tgz .
test ! -f mp3info-0.8.4.tgz &&
wget http://ibiblio.org/pub/linux/apps/sound/mp3-utils/mp3info/\
mp3info-0.8.4.tgz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "mp3info-*" -exec rm -r {} \;
tar xzvf ~/mp3info-0.8.4.tgz
cd mp3info-0.8.4
test $UID = 0 && chown -R root:root .
# If you only want to compile the console version, run 'make mp3info'. If
# you only want to compile the GTK+ version, run 'make gmp3info'. Then
# run 'install -s binary /usr/local/bin/' to install the one you compiled
# (make install below will try to install both).
# Recent versions of gcc (I'm using 3.4.5 on this box) don't like a
# multi-line string in gmp3info.c, patch it to escape each line:
wget -nc http://englanders.cc/pub/linux/patches/mp3info-0.8.4.patch &&
patch -p0 < mp3info-0.8.4.patch
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/mp3info-*.tgz
mv mp3info-0.8.4.tgz installed/
# If you ever want to uninstall mp3info, this should do it:
cd
su
test -d src/mp3info-* && ( cd src/mp3info-* ; make uninstall )
( cd /usr/local/bin ; rm -f gmp3info mp3info )
rm -f /usr/local/man/man1/mp3info.1
exit
find ~/src -maxdepth 1 -type d -name "mp3info-*" -exec rm -r {} \;
rm -f ~/installed/mp3info-*.tar.*