summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2020-01-10 16:30:11 +0800
committerUniversebenzene2020-01-10 16:30:11 +0800
commit4d9672c40280d68e188006a9060762dc29df2482 (patch)
treef9dd81eaef2f6ee6f1c083f1203734528e8c54de
parentcedba019cb35ca956f4c3521ef7ecfd3b4c110d9 (diff)
downloadaur-4d9672c40280d68e188006a9060762dc29df2482.tar.gz
Split mui packages
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD23
2 files changed, 25 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6f97f4cf59b..a2314241d96 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = wps-office-cn
- pkgdesc = Kingsoft Office (WPS Office) cn version - an office productivity suite
+ pkgdesc = Kingsoft Office (WPS Office) CN version - an office productivity suite
pkgver = 11.1.0.9080
- pkgrel = 1
+ pkgrel = 2
url = https://linux.wps.cn
arch = x86_64
license = custom
@@ -34,6 +34,7 @@ pkgname = wps-office-cn
optdepends = ttf-ms-fonts: Microsft Fonts recommended for wps-office
optdepends = wps-office-fonts: FZ TTF fonts provided by wps community
optdepends = wps-office-mime-cn: Use mime files provided by Kingsoft
+ optdepends = wps-office-mui-zh-cn: zh_CN support for WPS Office
provides = wps-office
conflicts = kingsoft-office
conflicts = wps-office
@@ -44,3 +45,6 @@ pkgname = wps-office-mime-cn
provides = wps-office-mime
conflicts = wps-office-mime
+pkgname = wps-office-mui-zh-cn
+ pkgdesc = Chinese (Simplified) mui package for WPS Office
+
diff --git a/PKGBUILD b/PKGBUILD
index 65404c2b343..cc05c82e13b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,10 +5,10 @@
# Contributor: Ariel AxionL <axionl at aosc dot io>
pkgbase=wps-office-cn
-pkgname=('wps-office-cn' 'wps-office-mime-cn')
+pkgname=('wps-office-cn' 'wps-office-mime-cn' 'wps-office-mui-zh-cn')
pkgver=11.1.0.9080
-pkgrel=1
-pkgdesc="Kingsoft Office (WPS Office) cn version - an office productivity suite"
+pkgrel=2
+pkgdesc="Kingsoft Office (WPS Office) CN version - an office productivity suite"
arch=('x86_64')
license=('custom')
url="https://linux.wps.cn"
@@ -40,7 +40,8 @@ package_wps-office-cn() {
'ttf-wps-fonts: Symbol fonts required by wps-office'
'ttf-ms-fonts: Microsft Fonts recommended for wps-office'
'wps-office-fonts: FZ TTF fonts provided by wps community'
- 'wps-office-mime-cn: Use mime files provided by Kingsoft')
+ 'wps-office-mime-cn: Use mime files provided by Kingsoft'
+ 'wps-office-mui-zh-cn: zh_CN support for WPS Office')
install=${pkgname}.install
conflicts=('kingsoft-office' 'wps-office')
provides=('wps-office')
@@ -49,6 +50,8 @@ package_wps-office-cn() {
install -d "${pkgdir}/usr/lib"
cp -r office6 "${pkgdir}/usr/lib"
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" office6/mui/default/*.txt
+ rm -r "${pkgdir}/usr/lib/office6/mui/en_US/resource/help"
+ rm -r "${pkgdir}/usr/lib/office6/mui/zh_CN"
install -d "${pkgdir}/usr/bin"
cd "${srcdir}/usr/bin"
@@ -70,6 +73,18 @@ package_wps-office-cn() {
install -Dm644 -t "${pkgdir}/etc/xdg/menus/applications-merged" "${srcdir}/etc/xdg/menus/applications-merged/wps-office.menu"
}
+package_wps-office-mui-zh-cn() {
+ pkgdesc="Chinese (Simplified) mui package for WPS Office"
+ cd "${srcdir}/opt/kingsoft/wps-office/office6/mui"
+
+ install -d "${pkgdir}/usr/lib/office6/mui/en_US/resource"
+ cp -r en_US/resource/help "${pkgdir}/usr/lib/office6/mui/en_US/resource"
+ cp -r zh_CN "${pkgdir}/usr/lib/office6/mui"
+
+ cd "${srcdir}/opt/kingsoft/wps-office/"
+ install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" office6/mui/default/*.txt
+}
+
package_wps-office-mime-cn() {
pkgdesc="Mime files provided by Kingsoft Office (WPS Office) cn version"
depends=('shared-mime-info')