#!/bin/shset -esite=http://www.dtek.chalmers.se/groups/dvd/deb/arch=$(dpkg --print-installation-architecture)soname=2uversion=1.2.5available="alpha hppa i386 ia64 powerpc s390 sparc"version=${uversion}-1if ! type wget > /dev/null ; then echo "Install wget and run this script again" exit 1fifor a in $available; do if [ "$a" = "$arch" ]; then wget ${site}libdvdcss${soname}_${version}_${arch}.deb -O /tmp/libdvdcss.deb dpkg -i /tmp/libdvdcss.deb exit $? fidoneecho "No binary deb available. Will try to build and install it."echo "You need to have debhelper, dpkg-dev and fakeroot installed."echo "If not, interrupt now, install them and rerun this script."echo ""echo "This is higly experimental, look out for what happens below."echo "If you want to stop, interrupt now (control-c), else press"echo "return to proceed"read dummkdir -p /tmp/dvdcd /tmp/dvdwget ${site}libdvdcss_${uversion}.orig.tar.gzwget ${site}libdvdcss_${version}.diff.gzwget ${site}libdvdcss_${version}.dscdpkg-source -x libdvdcss_${version}.dsccd libdvdcss-${uversion}fakeroot ./debian/rules binaryecho "Any problems? Interrupt now (control-c) and try to fix"echo "manually, else go on and install (return)."dpkg -i ../libdvdcss${soname}_${version}_${arch}.deb