5
site=http://www.dtek.chalmers.se/groups/dvd/deb/
6
arch=`dpkg --print-installation-architecture`
10
available="alpha amd64 hppa i386 ia64 powerpc s390 sparc"
13
if [ ! -e /usr/bin/wget ]
15
echo "Install wget and run this script again"
19
for a in $available; do
20
if [ "$a" = "$arch" ]; then
21
wget ${site}libdvdcss${soname}_${version}_${arch}.deb -O /tmp/libdvdcss.deb
22
dpkg -i /tmp/libdvdcss.deb
27
echo "No binary deb available. Will try to build and install it."
28
echo "You need to have debhelper, dpkg-dev and fakeroot installed."
29
echo "If not, interrupt now, install them and rerun this script."
31
echo "This is higly experimental, look out for what happens below."
32
echo "If you want to stop, interrupt now (control-c), else press"
33
echo "return to proceed"
38
wget ${site}libdvdcss_${uversion}.orig.tar.gz
39
wget ${site}libdvdcss_${version}.diff.gz
40
wget ${site}libdvdcss_${version}.dsc
41
dpkg-source -x libdvdcss_${version}.dsc
42
cd libdvdcss-${uversion}
43
fakeroot ./debian/rules binary
44
echo "Any problems? Interrupt now (control-c) and try to fix"
45
echo "manually, else go on and install (return)."
46
dpkg -i ../libdvdcss${soname}_${version}_${arch}.deb