blob: bf1ef12f33adfba99d4a0fc9e73ac208493b813b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: yifwon <wyf9661 [at] gmail.com>
pkgname=('wps-office-bin')
pkgver=12.1.0.17900
pkgrel=4
pkgdesc="WPS Office, is an office productivity suite."
arch=('x86_64')
url="https://linux.wps.cn"
_srcurl="https://wps-linux-365.wpscdn.cn"
license=('LicenseRef-WPS-EULA')
makedepends=(
'tar')
depends=(
'fontconfig' 'libxrender' 'xdg-utils' 'glu'
'libpulse' 'libxss' 'sqlite' 'libtool' 'libtiff'
'libxslt' 'freetype2')
optdepends=(
'wps-office-fonts: FZ TTF fonts provided by wps office'
'cups: for printing support'
'libjpeg-turbo: JPEG image codec support'
'libpng12: PNG image codec support'
'ttf-wps-fonts: Symbol fonts required by wps-office'
'ttf-ms-fonts: Microsft Fonts recommended for wps-office')
conflicts=(${pkgname%-bin})
provides=(${pkgname%-bin})
options=(!strip !zipman !debug)
source_x86_64=("${pkgname%-bin}_${pkgver}_amd64.deb::${_srcurl}/wps/download/ep/Linux2023/${pkgver##*.}/${pkgname%-bin}_${pkgver}_amd64.deb")
sha1sums_x86_64=('a245fe88c25d0992fb6d2b1e37ba99dc15fe2a5f')
package(){
xz -df data.tar.xz
tar --no-same-owner -C "${pkgdir}" -xf data.tar --exclude './usr/share/fonts'\
--exclude './usr/share/desktop-directories' ./opt/kingsoft ./usr
cd "${pkgdir}"
# use system lib
rm opt/kingsoft/wps-office/office6/lib{jpeg,stdc++}.so*
# fix python2 call
sed -i "s/python -c 'import sys, urllib; print urllib\.unquote(sys\.argv\[1\])'/\
python -c 'import sys, urllib.parse; print(urllib.parse.unquote(sys.argv[1]))'/" usr/bin/wps
}
|