1#! /bin/sh
2
3# This is a workaround for older maemo versions related to the icon.
4# The /usr/share/icons/scummvm.xpm icon is needed for OS2006 (Nokia 770)
5# but if present it overrides nicer icons for newer systems in /usr/share/icons/hicolor.
6# This workaround removes it if the OS isn't old (2006/2007).
7
8if [ "$1" = "configure"  ] ; then
9OSVER=$OSSO_VERSION
10[ -z "$OSVER" -a -f /etc/osso_software_version ] && OSVER=`cat /etc/osso_software_version`
11OSVER=`echo $OSVER | cut -d _ -f 2`
12case $OSVER in
13	2006*|2007*)
14		#nothing to do
15		true
16		;;
17	*)
18		#ugly trick, until this icon is removed big icon in menu does not show
19		[ -f /usr/share/icons/scummvm.xpm ] && rm /usr/share/icons/scummvm.xpm
20		;;
21esac
22	[ -x /usr/bin/gtk-update-icon-cache ] && /usr/bin/gtk-update-icon-cache /usr/share/icons/hicolor
23	[ -x /usr/bin/maemo-select-menu-location -a -z "$2" ] && /usr/bin/maemo-select-menu-location scummvm.desktop  tana_fi_games
24fi
25exit 0
26