diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-03 23:02:46 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-03 23:02:46 +0900 |
commit | fcad8b8d150fb9f508973e3044a103de74ec3877 (patch) | |
tree | ca34a8cf3bfbe08335d40c47863b4901e1d19609 /ubuntu/_base/applications/kaffeine/debian/install-css.sh | |
parent | 5d8ed1fab813d86b04383f7fcf8ab2c994cbea30 (diff) | |
download | tde-packaging-fcad8b8d150fb9f508973e3044a103de74ec3877.tar.gz tde-packaging-fcad8b8d150fb9f508973e3044a103de74ec3877.zip |
DEB: use _base folder for a distro instead of specific distros (squeeze and maverick).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ubuntu/_base/applications/kaffeine/debian/install-css.sh')
-rw-r--r-- | ubuntu/_base/applications/kaffeine/debian/install-css.sh | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/ubuntu/_base/applications/kaffeine/debian/install-css.sh b/ubuntu/_base/applications/kaffeine/debian/install-css.sh new file mode 100644 index 000000000..f374562ff --- /dev/null +++ b/ubuntu/_base/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 |