Commit 0319f6e8 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play wpsoffice: parse version from vendor (eterbug #17812)

parent ab6ab074
...@@ -9,13 +9,9 @@ TIPS="Run epm play wpsoffice=<version> to install some specific version" ...@@ -9,13 +9,9 @@ TIPS="Run epm play wpsoffice=<version> to install some specific version"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
# TODO: get latest version from vendor
if [ "$VERSION" = "*" ] ; then if [ "$VERSION" = "*" ] ; then
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=wps-office 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)
pkgverstr=$(eget -O- "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=wps-office" | grep "^pkgver=") VERSION="${VERSION}.XA"
eval $pkgverstr
[ -n "$pkgver" ] || pkgver=11.1.0.11664
VERSION="$pkgver.XA"
fi fi
mversion=$(echo "$VERSION" | sed -e 's|\.XA$||' -e 's|.*\.||') mversion=$(echo "$VERSION" | sed -e 's|\.XA$||' -e 's|.*\.||')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment