wpsoffice.sh 580 Bytes
Newer Older
1 2
#!/bin/sh

3
PKGNAME=wpsoffice
4
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6
DESCRIPTION="WPS Office for Linux from the official site"
7
URL="https://www.wps.cn/product/wpslinux"
8
TIPS="Run epm play wpsoffice=<version> to install some specific version"
9 10 11

. $(dirname $0)/common.sh

12
if [ "$VERSION" = "*" ] ; then
13
    VERSION=$(eget -O- https://archive2.kylinos.cn/DEB/KYLIN_DEB/pool/main/deb/wpsoffice/ | grep -oP '[^/]+_\K[\d.]+(?=_amd64\.deb)' | sort -V | tail -n1)
14
fi
15

16
PKGURL="https://archive2.kylinos.cn/DEB/KYLIN_DEB/pool/main/deb/wpsoffice/wpsoffice_${VERSION}_amd64.deb"
17

18
install_pkgurl