File: install-css.sh

package info (click to toggle)
ogle 0.8.2-11
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,636 kB
  • ctags: 2,827
  • sloc: ansic: 27,297; sh: 7,305; makefile: 234; asm: 71
file content (37 lines) | stat: -rw-r--r-- 1,060 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
set -e

site=http://www.dtek.chalmers.se/groups/dvd/deb/
uversion=0.0.3.ogle3
version=${uversion}-1

arch=$(dpkg --print-installation-architecture)
available="hppa hurd-i386 i386 ia64 powerpc sparc"

for a in $available; do
    if [  "$a" = "$arch" ]; then
	wget ${site}libdvdcss0_${version}_${arch}.deb -O /tmp/libdvdcss.deb
	dpkg -i /tmp/libdvdcss.deb
	exit $?
    fi
done

echo "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 dum

mkdir -p /tmp/dvd
cd /tmp/dvd
wget ${site}libdvdcss_${uversion}.orig.tar.gz
wget ${site}libdvdcss_${version}.diff.gz
wget ${site}libdvdcss_${version}.dsc
dpkg-source -x libdvdcss_${version}.dsc
cd libdvdcss-${uversion}
fakeroot ./debian/rules binary
dpkg -i ../libdvdcss0_${version}_${arch}.deb