abinfo "Tweaking program menu data to make use of xdg-menu ..."
rm -v "$PKGDIR"/usr/share/icewm/programs
ln -sv ../../../var/cache/xdg-menu/icewm/programs \
    "$PKGDIR"/usr/share/icewm/programs

abinfo "Removing buggy FD.o menu generator ..."
rm -v "$PKGDIR"/usr/bin/icewm-menu-fdo

abinfo "Installing internationalised menus ..."
for i in menu toolbar; do
    mv -v "$PKGDIR"/usr/share/icewm/${i}{,.def}
    ln -sv ${i}.def "$PKGDIR"/usr/share/icewm/${i}
done

abinfo "Tweaking preferences ..."
sed -e 's|^#\ MenuIconSize=16|MenuIconSize=24|g' \
    -i "$PKGDIR"/usr/share/icewm/preferences
