Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
6aa1c1e6
Commit
6aa1c1e6
authored
Dec 21, 2024
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Jan 13, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play wpsoffice: use new cn version (eterbug #17952)
parent
082834c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
15 deletions
+11
-15
wpsoffice.sh
play.d/wpsoffice.sh
+4
-14
wpsoffice.sh
repack.d/wpsoffice.sh
+7
-1
No files found.
play.d/wpsoffice.sh
View file @
6aa1c1e6
#!/bin/sh
PKGNAME
=
wps
-
office
PKGNAME
=
wpsoffice
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
DESCRIPTION
=
"WPS Office for Linux from the official site"
URL
=
"https://www.wps.c
om/ru-RU/
"
URL
=
"https://www.wps.c
n/product/wpslinux
"
TIPS
=
"Run epm play wpsoffice=<version> to install some specific version"
.
$(
dirname
$0
)
/common.sh
if
[
"
$VERSION
"
=
"*"
]
;
then
VERSION
=
$(
eget
-O-
https://www.wps.com/whatsnew/linux/ |
grep
-oP
"
\W
(
\d
+
\.\d
+
\.\d
+
\.\d
+)
\W
"
|
grep
-oP
"
\d
+
\.\d
+
\.\d
+
\.\d
+"
|
head
-n1
)
VERSION
=
"
${
VERSION
}
.XA"
VERSION
=
$(
eget
-O-
https://archive2.kylinos.cn/DEB/KYLIN_DEB/pool/main/deb/wpsoffice/ |
grep
-oP
'[^/]+_\K[\d.]+(?=_amd64\.deb)'
|
sort
-V
|
tail
-n1
)
fi
mversion
=
$(
echo
"
$VERSION
"
|
sed
-e
's|\.XA$||'
-e
's|.*\.||'
)
pkgtype
=
$(
epm print info
-p
)
case
$pkgtype
in
rpm
)
PKGURL
=
"https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/
$mversion
/wps-office-
${
VERSION
}
-1.x86_64.rpm"
;;
*
)
PKGURL
=
"https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/
$mversion
/wps-office_
${
VERSION
}
_amd64.deb"
;;
esac
PKGURL
=
"https://archive2.kylinos.cn/DEB/KYLIN_DEB/pool/main/deb/wpsoffice/wpsoffice_
${
VERSION
}
_amd64.deb"
install_pkgurl
repack.d/wps
-
office.sh
→
repack.d/wpsoffice.sh
View file @
6aa1c1e6
...
...
@@ -24,7 +24,10 @@ remove_file $PRODUCTDIR/office6/wpscloudsvr
remove_file
$PRODUCTDIR
/office6/addons/pdfbatchcompression/libpdfbatchcompressionapp.so
# Fix for icu>=71.1
remove_file
$PRODUCTDIR
/office6/libstdc++.so.6
*
remove_file
$PRODUCTDIR
/office6/libstdc++.so.
*
# Use system libjpeg
remove_file
$PRODUCTDIR
/office6/libjpeg.so.
*
# hack to fix bug somewhere in linking
ignore_lib_requires
"libc++.so"
...
...
@@ -32,6 +35,9 @@ ignore_lib_requires "libc++.so"
# QT is prebuilded
ignore_lib_requires
"libQtCore.so.4 libQtNetwork.so.4 libQtXml.so.4"
# WPS Office provide libuof.so()(64bit) itself
ignore_lib_requires
"libuof.so"
# 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment