cd
test -f installed/libdvdcss-1.2.9.tar.bz2 &&
mv installed/libdvdcss-1.2.9.tar.bz2 .
test ! -f libdvdcss-1.2.9.tar.bz2 &&
wget http://download.videolan.org/pub/libdvdcss/1.2.9/libdvdcss-1.2.9.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libdvdcss-*" -exec rm -r {} \;
tar xjvf ~/libdvdcss-1.2.9.tar.bz2
cd libdvdcss-1.2.9
test $UID = 0 && chown -R root:root .
./configure
# If you have latex installed, before running make, check to see what this
# reports back:
# kpsexpand \$VARTEXFONTS
# If that directory (usually /var/lib/texmf) does not exist, run this:
# su -c "texconfig font rw"
make
# Become root to clean up old files and to install it
su
rm -f /usr/local/lib/libdvdcss.*
make install
ldconfig
# If the evil people that want this sort of software to be made illegal
# somehow get their way, though that would totally suck and I'd do
# something about if I could, you didn't hear about it from me :-)
# If it's illegal to use in your country, don't use it - because of the law,
# but also because there are apps available that can play your DVD without
# using it.
# If you ever want to uninstall libdvdcss, this should do it:
cd
su
test -d src/libdvdcss-* && ( cd src/libdvdcss-* ; make uninstall )
test -d /usr/local/include/dvdcss && rm -r /usr/local/include/dvdcss
rm -f /usr/local/lib/libdvdcss.*
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libdvdcss-*" -exec rm -r {} \;
rm -f ~/installed/libdvdcss-*.tar.*