Commit 8d27d1c2 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play wpsoffice: fix update

parent 296623f9
......@@ -13,16 +13,16 @@ if [ "$VERSION" = "*" ] ; then
pkgverstr=$(epm tool eget -O- "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=wps-office" | grep "^pkgver=")
eval $pkgverstr
[ -n "$pkgver" ] || pkgver=11.1.0.11664
VERSION="$pkgver"
VERSION="$pkgver.XA"
fi
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/${VERSION##*.}/wps-office-${VERSION}.XA-1.x86_64.rpm"
PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/${VERSION##*.}/wps-office-${VERSION}-1.x86_64.rpm"
;;
*)
PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/${VERSION##*.}/wps-office_${VERSION}.XA_amd64.deb"
PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/${VERSION##*.}/wps-office_${VERSION}_amd64.deb"
;;
esac
......
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