summaryrefslogtreecommitdiffstats
path: root/ubuntu/precise/applications/kaffeine/debian/install-css.sh
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-10 16:16:32 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-10 16:16:32 -0500
commit02dc85a95b228b7242b0d11ea35619faad96db03 (patch)
treee161ba877a0720bbdf7818bdec06eb239d8ad271 /ubuntu/precise/applications/kaffeine/debian/install-css.sh
parent6f2c7dc70e77d2f768d687838b6cc9f7632f609e (diff)
downloadtde-packaging-02dc85a95b228b7242b0d11ea35619faad96db03.tar.gz
tde-packaging-02dc85a95b228b7242b0d11ea35619faad96db03.zip
Split precise from maverick
Diffstat (limited to 'ubuntu/precise/applications/kaffeine/debian/install-css.sh')
-rw-r--r--ubuntu/precise/applications/kaffeine/debian/install-css.sh46
1 files changed, 46 insertions, 0 deletions
diff --git a/ubuntu/precise/applications/kaffeine/debian/install-css.sh b/ubuntu/precise/applications/kaffeine/debian/install-css.sh
new file mode 100644
index 000000000..f374562ff
--- /dev/null
+++ b/ubuntu/precise/applications/kaffeine/debian/install-css.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+set -e
+
+site=http://www.dtek.chalmers.se/groups/dvd/deb/
+arch=`dpkg --print-installation-architecture`
+
+soname=2
+uversion=1.2.5
+available="alpha amd64 hppa i386 ia64 powerpc s390 sparc"
+version=${uversion}-1
+
+if [ ! -e /usr/bin/wget ]
+then
+ echo "Install wget and run this script again"
+ exit 1
+fi
+
+for 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 $?
+ 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
+echo "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