From d0073eaa7e1f483b9bc9317fe692daee8250ab7e Mon Sep 17 00:00:00 2001 From: Piraty Date: Tue, 28 Nov 2017 22:06:36 +0100 Subject: [PATCH] libreoffice: fix desktop files for i686 Closes: #9615 [via git-merge-pr] --- srcpkgs/libreoffice/template | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srcpkgs/libreoffice/template b/srcpkgs/libreoffice/template index 2b7624cc277..e7804962726 100644 --- a/srcpkgs/libreoffice/template +++ b/srcpkgs/libreoffice/template @@ -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 +}