summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2018-09-10 19:59:24 +0800
committerUniversebenzene2018-09-10 19:59:24 +0800
commitea89633f54ec0c7fb816919b439998de38ec4a29 (patch)
treebc6d5057544672eb74334bb6047ecdec811d130b
parent2788e0e30059ab8c74bf3e16393a61de8ca231b1 (diff)
downloadaur-ea89633f54ec0c7fb816919b439998de38ec4a29.tar.gz
Fix depends & pacman hook
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD2
-rw-r--r--wps-office.install16
3 files changed, 3 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 13cd25053b8..a204bb145d4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index c9e515ab763..621012c1ea7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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 8cacd83782a..fdd39f54ff2 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()