libreoffice: fix desktop files for i686

Closes: #9615 [via git-merge-pr]
This commit is contained in:
Piraty 2017-11-28 22:06:36 +01:00 committed by Jürgen Buchmüller
parent 20835c8b18
commit d0073eaa7e

View file

@ -218,3 +218,11 @@ do_install() {
# Remove useless directory usr/lib32
rm -rf ${DESTDIR}/usr/lib32
}
post_install() {
case "$XBPS_TARGET_MACHINE" in
i686*) # correct desktop files
sed -i "s/libreoffice5.4/libreoffice/" ${DESTDIR}/usr/lib/libreoffice/share/xdg/*.desktop
;;
esac
}