diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-07-20 21:34:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-07-20 21:34:07 +0100 |
commit | 12f9a14ee3a0e83d5ba73eb23283782a85abb223 (patch) | |
tree | 6703c6a06cdafa6b3fd2ce520ebe98993be850a7 | |
parent | 2d40ed1d3f8088574d0fc8b89217ad6385bd7df4 (diff) |
enable wps-office mimetypes
-rw-r--r-- | app-office/wps-office/wps-office-10.1.0.5672_alpha21.ebuild | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/app-office/wps-office/wps-office-10.1.0.5672_alpha21.ebuild b/app-office/wps-office/wps-office-10.1.0.5672_alpha21.ebuild index bd3fe5a1..97fdfae2 100644 --- a/app-office/wps-office/wps-office-10.1.0.5672_alpha21.ebuild +++ b/app-office/wps-office/wps-office-10.1.0.5672_alpha21.ebuild @@ -3,7 +3,7 @@ # $Id$ EAPI=6 -inherit eutils unpacker versionator +inherit eutils fdo-mime gnome2-utils unpacker versionator MY_PV="$(get_version_component_range 1-4)" MY_V="$(get_version_component_range 5)" @@ -92,4 +92,19 @@ src_install() { for i in wps-office-wps.desktop wps-office-wpp.desktop wps-office-et.desktop ; do dosym /opt/kingsoft/wps-office/resource/applications/$i /usr/share/applications/$i done + dodir /usr/share/mime/packages + for i in wps-office-wps.xml wps-office-wpp.xml wps-office-et.xml ; do + dosym /opt/kingsoft/wps-office/resource/mime/packages/$i /usr/share/mime/packages/$i + done +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update } |