20.9 WPS Office(Linux 版)
最后更新于
# cd /compat/linux/# rpm2cpio < /home/ykla/下载/wps-office-12.1.2.25882.AK.preread.sw.Personal-1-663297.x86_64.rpm | cpio -id/compat/linux/
└── opt/
└── kingsoft/
└── wps-office/
└── office6/
└── wps # WPS 可执行文件$ /compat/linux/usr/bin/bashbash-5.1$ ldd /opt/kingsoft/wps-office/office6/wps
linux-vdso.so.1 (0x00007fffffffe000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000000801064000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000000801069000)
libtcmalloc_minimal.so.4 => /opt/kingsoft/wps-office/office6/libtcmalloc_minimal.so.4 (0x0000000801600000)
liblibsafec.so => /opt/kingsoft/wps-office/office6/liblibsafec.so (0x000000080106e000)
libstdc++.so.6 => /opt/kingsoft/wps-office/office6/libstdc++.so.6 (0x0000000801a00000)
libm.so.6 => /lib64/libm.so.6 (0x000000080108b000)
libgcc_s.so.1 => /opt/kingsoft/wps-office/office6/libgcc_s.so.1 (0x0000000801166000)
libc.so.6 => /lib64/libc.so.6 (0x0000000801e00000)
/lib64/ld-linux-x86-64.so.2 (0x0000000001021000)
librt.so.1 => /lib64/librt.so.1 (0x000000080118b000)$ /compat/linux/opt/kingsoft/wps-office/office6/wps[Desktop Entry]
Comment=Use WPS Writer to edit articles and reports.
Comment[zh_CN]=使用 WPS 文字编写报告,排版文章
Exec=/compat/linux/opt/kingsoft/wps-office/office6/wps %U
GenericName=WPS Writer
GenericName[zh_CN]=WPS 文字
MimeType=application/wps-office.wps;application/wps-office.wpt;application/wps-office.wpso;application/wps-office.wpss;application/wps-office.doc;application/wps-office.dot;application/vnd.ms-word;application/msword;application/x-msword;application/msword-template;application/wps-office.docx;application/wps-office.dotx;application/rtf;application/vnd.ms-word.document.macroEnabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.document;x-scheme-handler/ksoqing;x-scheme-handler/ksowps;x-scheme-handler/ksowpp;x-scheme-handler/ksoet;x-scheme-handler/ksowpscloudsvr;x-scheme-handler/ksowebstartupwps;x-scheme-handler/ksowebstartupet;x-scheme-handler/ksowebstartupwpp;application/wps-office.uot3;application/wps-office.uott3;x-scheme-handler/ksodoccenter;application/wps-office.msg;application/wps-office.eml;
Name=WPS Writer
Name[zh_CN]=WPS 文字
StartupNotify=false
Terminal=false
Type=Application
Categories=Office;WordProcessor;Qt;
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Icon=wps-office2023-wpsmain
InitialPreference=3
StartupWMClass=wps# chroot /compat/arch/ /bin/bash # 进入 Arch 兼容层
# su test # 切换到普通用户才能使用 AUR,此时位于 Arch 兼容层$ yay -S wps-office-cn ttf-wps-fonts wps-office-mui-zh-cn # 此时位于 Arch 兼容层,当前用户为 test
AUR Explicit (2): wps-office-cn-11.1.0.11698-1, ttf-wps-fonts-1.0-5
:: (1/1) Downloaded PKGBUILD: ttf-wps-fonts
2 wps-office-cn (Build Files Exist)
1 ttf-wps-fonts (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 1 # 输入 1 后按回车
:: Deleting (1/1): /home/test/.cache/yay/ttf-wps-fonts
HEAD is now at ba3222c Add upstream URL
2 wps-office-cn (Build Files Exist)
1 ttf-wps-fonts (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 1 # 输入 1 后按回车
diff --git /home/test/.cache/yay/ttf-wps-fonts/.gitignore /home/test/.cache/yay/ttf-wps-fonts/.gitignore
new file mode 100644
index 0000000..12be320
--- /dev/null
+++ /home/test/.cache/yay/ttf-wps-fonts/.gitignore
@@ -0,0 +1,5 @@
+*.pkg.tar.xz
+*.src.tar.gz
+src/
+pkg/
+
diff --git /home/test/.cache/yay/ttf-wps-fonts/PKGBUILD /home/test/.cache/yay/ttf-wps-fonts/PKGBUILD
new file mode 100644
index 0000000..21a51bb
--- /dev/null
…………
+url="https://github.com/IamDH4/ttf-wps-fonts"
+source=("$pkgname.zip::https://github.com/IamDH4/$pkgname/archive/master.zip"
+ "license.txt")
+sha1sums=('cbc7d2c733b5d3461f3c2200756d4efce9e951d5'
+ '6134a63d775540588ce48884e8cdc47d4a9a62f3')
+
# 输入 q 退出
:: Proceed with install? [Y/n] y # 输入 y 确认
==> Making package: ttf-wps-fonts 1.0-5 (Thu Jul 6 06:23:35 2023)
…………
==> Leaving fakeroot environment.
==> Finished making: wps-office-cn 11.1.0.11698-1 (Thu Jul 6 06:37:32 2023)
==> Cleaning up...
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
For security reasons, the password you type will not be visible.
[sudo] password for test: # 输入 test 用户的密码。若密码正确但仍提示错误,请重启 FreeBSD 后重试
Packages (2) ttf-wps-fonts-1.0-5 wps-office-cn-11.1.0.11698-1
Total Installed Size: 1370.17 MiB
:: Proceed with installation? [Y/n] y # 输入 y 确认安装
(2/2) checking keys in keyring [######################################] 100%
(2/2) checking package integrity [######################################] 100%
…………
(2/2) installing ttf-wps-fonts [######################################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating fontconfig cache...
(3/4) Updating the desktop file MIME type cache...
(4/4) Updating X fontdir indices...
[test@ykla ~]$ exit
# pacman -S libxcomposite # 安装缺失的依赖# chroot /compat/ubuntu/ /bin/bash# apt install bsdmainutils xdg-utils libxslt1.1 libqt5gui5 xcb# wget https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/11698/wps-office_11.1.0.11698_amd64.deb# apt install ./wps-office_11.1.0.11698_amd64.deb# ldd /usr/lib/office6/wps# pkg install bash# cd /usr/ports/shells/bash/
# make install clean