1 # arg 1: the new package version
3 pacman -Q mplayer &>/dev/null
5 pacman -Q kdebase &>/dev/null
8 if [ $hasmplayer -eq 1 ]; then
10 echo ">>> Couldn't find mplayer."
11 echo ">>> Without mplayer, you will not be able to preview encoded videos."
14 if [ $haskonqueror -eq 1 ]; then
16 echo ">>> Couldn't find konqueror. Servicemenus will not be installed."
19 cat << EOF > /opt/kde/share/apps/konqueror/servicemenus/thinliquidfilm.desktop
20 [Desktop Action thinliquidfilm]
21 Exec=thinliquidfilm %U
22 Icon=/usr/share/thinliquidfilm/ipod_mount.png
23 Name=Add to thinliquidfilm
24 Name[it]=Aggiungi a thinliquidfilm
27 Actions=thinliquidfilm
28 Icon=/usr/share/thinliquidfilm/ipod_mount.png
29 Name=Add to thinliquidfilm
30 Name[it]=Aggiungi a thinliquidfilm
36 # arg 1: the new package version
37 # arg 2: the old package version
42 # arg 1: the old package version
44 pacman -Q kdebase &>/dev/null
46 if [ $haskonqueror -eq 0 ]; then
47 rm /opt/kde/share/apps/konqueror/servicemenus/thinliquidfilm.desktop
53 [ "$(type -t "$op")" = "function" ] && $op "$@"