# libcdio can use libcddb and libcddb can use libcdio. You may want to
# build this one, build that one, then build this one (or vice-versa) to
# make sure everything is built-in that can be.
# VCDImager's libvcsinfo can optionally use libcdio, but libcdio is
# mandatory for libvcsinfo. So to get everything there too, build this
# first, then VCDImager, then come back here and rebuild libcdio again.
# So, if you want them all to use each other, build libcdio, then VCDImager,
# then libcddb, then libcdio again.
cd
test -f installed/libcdio-0.80.tar.gz && mv installed/libcdio-0.80.tar.gz .
test ! -f libcdio-0.80.tar.gz &&
wget http://ftp.gnu.org/gnu/libcdio/libcdio-0.80.tar.gz
# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "6495add276ed11b7ac8a88092799ab4f libcdio-0.80.tar.gz" | md5sum -c
# Verify tarball w/ sha1sum:
# (this also came from my gpg-verified tarball)
echo "40c1558a65a9eca2b693d1951ed2664efbe7d1ed libcdio-0.80.tar.gz" | \
sha1sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libcdio-*" -exec rm -r {} \;
tar xzvf ~/libcdio-0.80.tar.gz
cd libcdio-0.80
test $UID = 0 && chown -R root:root .
./configure
make
# Become root to install it
su
# Removed old library files and install it
( cd /usr/local/lib
rm -f libcdio.* libcdio++.* libcdio_* libiso9660.* libiso9660++.* \
libudf.* )
make install
ldconfig
# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .