summaryrefslogtreecommitdiffstats
path: root/debian/squeeze/applications/amarok.cmake/debian/kubuntu-media-amarok
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-14 05:57:37 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-14 05:57:37 -0500
commitcd9a7c5ac8336feceecc70a1f7cac6aefe5c370b (patch)
tree4567e0fac77e81856682a39b4a3fc7b417ea5693 /debian/squeeze/applications/amarok.cmake/debian/kubuntu-media-amarok
parent46b27ed1c011f5950f5b0b3af13f315236857392 (diff)
downloadtde-packaging-cd9a7c5ac8336feceecc70a1f7cac6aefe5c370b.tar.gz
tde-packaging-cd9a7c5ac8336feceecc70a1f7cac6aefe5c370b.zip
Use autotools to build Amarok on Ubuntu and Debian
Diffstat (limited to 'debian/squeeze/applications/amarok.cmake/debian/kubuntu-media-amarok')
-rw-r--r--debian/squeeze/applications/amarok.cmake/debian/kubuntu-media-amarok16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/squeeze/applications/amarok.cmake/debian/kubuntu-media-amarok b/debian/squeeze/applications/amarok.cmake/debian/kubuntu-media-amarok
new file mode 100644
index 000000000..dacf7fc55
--- /dev/null
+++ b/debian/squeeze/applications/amarok.cmake/debian/kubuntu-media-amarok
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+DEVICE=$@
+
+if [ -n "$DEVICE" ];then
+ if [ ${DEVICE:0:7} = "audiocd" ]; then
+ amarok --cdplay ${DEVICE#*=}
+ elif [ ${DEVICE:0:1} = "/" ]; then
+ amarok --cdplay `dcop kded mediamanager fullList | grep -B1 $DEVICE | head -n1`
+ else
+ amarok --cdplay /dev/cdrom
+ fi
+else
+ amarok --cdplay /dev/cdrom
+fi
+