blob: d20f97609514bd191564d986e4a1eafc186bde75 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Ouyang Jun <ouyangjun1999@gmail.com>
# Maintainer: Astro Benzene <universebenzene at sina dot com>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Jove Yu <yushijun110 [at] gmail.com>
# Contributor: Ariel AxionL <axionl at aosc dot io>
pkgname=wps-office
pkgver=10.1.0.6757
#_pkgver=10.1.0.5707~a21
pkgrel=1
pkgdesc="Kingsoft Office (WPS Office) is an office productivity suite"
arch=('i686' 'x86_64')
license=("custom")
url="http://wps-community.org/"
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'
'curl: An URL retrieval utility and library'
'ttf-wps-fonts: Symbol fonts required by wps-office')
conflicts=('kingsoft-office')
options=('!emptydirs')
install=${pkgname}.install
[[ "$CARCH" = "i686" ]] && _archext=x86 || _archext=x86_64
source_i686=("http://kdl.cc.ksosoft.com/wps-community/download/6757/wps-office_${pkgver}_x86.tar.xz")
source_x86_64=("http://kdl.cc.ksosoft.com/wps-community/download/6757/wps-office_${pkgver}_x86_64.tar.xz")
sha1sums_i686=('3c6095380c32252afd7838f295259b14a0bf726e')
sha1sums_x86_64=('03a781599dfcf001fc3bcf1d49699bd1a44aaceb')
PKGEXT=".pkg.tar"
prepare() {
cd wps-office_${pkgver}_$_archext
sed -i 's|/opt/kingsoft/wps-office|/usr/lib|' wps wpp et
# sed -i 's|/office6/${gApp} ${gOptExt}|/office6/${gApp} -style gtk+ ${gOptExt}|' wps
# sed -i 's|/office6/${gApp} ${gOptExt}|/office6/${gApp} -style gtk+ ${gOptExt}|' wpp et
}
package() {
cd wps-office_${pkgver}_$_archext
install -d "${pkgdir}/usr/lib"
cp -r office6 "${pkgdir}/usr/lib"
install -d "${pkgdir}/usr/bin"
install -m755 wps wpp et "${pkgdir}/usr/bin"
install -d "${pkgdir}/usr/share/applications"
cp -r resource/applications/* "${pkgdir}/usr/share/applications"
install -d "${pkgdir}/usr/share/icons"
cp -r resource/icons/* "${pkgdir}/usr/share/icons"
install -d "${pkgdir}/usr/share/mime"
cp -r resource/mime/* "${pkgdir}/usr/share/mime"
#cp -r "$srcdir/usr/share" "${pkgdir}/usr/"
install -d "${pkgdir}/usr/share/fonts/wps-office"
#cp -r fonts/* "${pkgdir}/usr/share/fonts/wps-office"
install -Dm644 office6/mui/default/EULA.txt "${pkgdir}/usr/share/licenses/$pkgname/EULA.txt"
}
|