[ "$EBUILD_PHASE" = preinst ] && { [ -e "$D"/usr/share/applications -o -e "$D"/usr/share/desktop-directories ] && ob3config_preinst=yes for i in "$D"//usr/share/pixmaps/*.xpm; do i1="${i%.xpm}.png" [ -e "$i" -a ! -e "$i1" ] || continue convert "$i" "$i1" || feh -m "$i" -O "$i1" done } [ "$EBUILD_PHASE" = postinst ] && [ "$ob3config_preinst" = yes ] && /usr/bin/ob3menu|sed -e 's:::' -e 's:::' >/var/lib/ya/menu.xml