~ubuntu-branches/ubuntu/karmic/libdvdread/karmic

« back to all changes in this revision

Viewing changes to debian/scripts/install-css.sh

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2006-11-02 19:56:00 UTC
  • mfrom: (1.1.2 upstream) (3.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20061102195600-2kfmqs09792m1uq3
Tags: 0.9.7-2
Fixed typo in README.Debian (Closes: #396733).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
site=http://www.dtek.chalmers.se/groups/dvd/deb/
6
 
arch=`dpkg --print-installation-architecture`
7
 
 
8
 
soname=2
9
 
uversion=1.2.5
10
 
available="alpha amd64 hppa i386 ia64 powerpc s390 sparc"
11
 
version=${uversion}-1
12
 
 
13
 
if [ ! -e /usr/bin/wget ]
14
 
then
15
 
    echo "Install wget and run this script again"
16
 
    exit 1
17
 
fi
18
 
 
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
23
 
        exit $?
24
 
    fi
25
 
done
26
 
 
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."
30
 
echo ""
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"
34
 
read dum
35
 
 
36
 
mkdir -p /tmp/dvd
37
 
cd /tmp/dvd
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