diff options
author | Universebenzene | 2018-09-10 19:59:24 +0800 |
---|---|---|
committer | Universebenzene | 2018-09-10 19:59:24 +0800 |
commit | ea89633f54ec0c7fb816919b439998de38ec4a29 (patch) | |
tree | bc6d5057544672eb74334bb6047ecdec811d130b | |
parent | 2788e0e30059ab8c74bf3e16393a61de8ca231b1 (diff) | |
download | aur-ea89633f54ec0c7fb816919b439998de38ec4a29.tar.gz |
Fix depends & pacman hook
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | wps-office.install | 16 |
3 files changed, 3 insertions, 18 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Thu Jun 7 12:11:59 UTC 2018 +# Mon Sep 10 11:58:13 UTC 2018 pkgbase = wps-office pkgdesc = Kingsoft Office (WPS Office) is an office productivity suite pkgver = 10.1.0.6634 @@ -10,6 +10,7 @@ pkgbase = wps-office arch = x86_64 license = custom depends = fontconfig + depends = xorg-mkfontdir depends = libxrender depends = desktop-file-utils depends = shared-mime-info @@ -12,7 +12,7 @@ pkgdesc="Kingsoft Office (WPS Office) is an office productivity suite" arch=('i686' 'x86_64') license=("custom") url="http://wps-community.org/" -depends=('fontconfig' 'libxrender' 'desktop-file-utils' 'shared-mime-info' 'xdg-utils' 'glu' 'openssl-1.0' 'sdl2' 'libpulse' 'hicolor-icon-theme') +depends=('fontconfig' 'xorg-mkfontdir' 'libxrender' 'desktop-file-utils' 'shared-mime-info' 'xdg-utils' 'glu' 'openssl-1.0' 'sdl2' 'libpulse' 'hicolor-icon-theme') optdepends=('cups: for printing support' 'libjpeg-turbo: JPEG image codec support' 'pango: for complex (right-to-left) text support' diff --git a/wps-office.install b/wps-office.install index 8cacd83782af..fdd39f54ff24 100644 --- a/wps-office.install +++ b/wps-office.install @@ -144,20 +144,9 @@ function ks_config_menu() } -function ks_config_fonts() -{ - if [ -d /usr/share/fonts/wps-office ] ; then - cd /usr/share/fonts/wps-office - mkfontscale - mkfontdir - fc-cache -f - fi -} - function ks_config() { ks_config_menu - ks_config_fonts } function ks_remove() @@ -173,11 +162,6 @@ function ks_remove() if [ -x /usr/bin/update-desktop-database ] ; then update-desktop-database -q "${ksv_xdg_dir}/applications" fi - - if [ -d /usr/share/fonts/wps-office ] ; then - cd /usr/share/fonts - fc-cache -f - fi } function ks_purge() |