wps-office.sh 1.2 KB
Newer Older
1 2 3 4 5
#!/bin/sh -x

# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
6
PRODUCTDIR=/opt/kingsoft/wps-office
7 8 9 10 11 12 13 14

. $(dirname $0)/common.sh

#REQUIRES="fonts-ttf-liberation, fonts-ttf-dejavu"
#subst "s|^\(Name: .*\)$|# Converted from original package requires\nRequires:$REQUIRES\n\1|g" $SPEC

remove_dir /etc/cron.d
remove_dir /etc/logrotate.d
15
remove_dir /etc/xdg
16

17 18 19
# ALT bug 43751
remove_file /usr/share/desktop-directories/wps-office.directory

20
# ALT bug 45683
21 22 23 24 25
remove_file $PRODUCTDIR/office6/wpscloudsvr

# linked with missed libkappessframework.so()(64bit)
remove_file $PRODUCTDIR/office6/addons/pdfbatchcompression/libpdfbatchcompressionapp.so

26
# Fix for icu>=71.1
27
remove_file $PRODUCTDIR/office6/libstdc++.so.6*
28

29 30
# hack to fix bug somewhere in linking
ignore_lib_requires "libc++.so"
31

32 33 34 35 36 37 38
# QT is prebuilded
ignore_lib_requires "libQtCore.so.4 libQtNetwork.so.4 libQtXml.so.4"

# Fix wps deprecated python2 command
# https://aur.archlinux.org/cgit/aur.git/tree/fix-wps-python-parse.patch?h=wps-office-cn
subst 's/python -c '\''import sys, urllib; print urllib.unquote(sys.argv\[1\])'\''/python3 -c '\''import sys, urllib.parse; print(urllib.parse.unquote(sys.argv[1]))'\''/' $BUILDROOT/usr/bin/wps

39
add_libs_requires