Commit e120bd24 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: update synology* scripts

parent 5031a1db
......@@ -2,12 +2,15 @@
PKGNAME=synology-chat
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION='Synology Chat Client from the official site'
. $(dirname $0)/common.sh
urldir="$(epm tool eget --list https://archive.synology.com/download/Utility/ChatClient '/[0-9]*' | head -n1)"
[ -n "$urldir" ] || exit
[ "$VERSION" = "*" ] && VERSION="[0-9]*"
urldir="$(epm tool eget --list https://archive.synology.com/download/Utility/ChatClient "/$VERSION-"' | head -n1)"
[ -n "$urldir" ] || fatal "Can't get dir for $VERSION version on https://archive.synology.com/download/Utility/ChatClient"
# use temp dir
PKGDIR="$(mktemp -d)"
......
......@@ -2,12 +2,19 @@
PKGNAME=synology-drive
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION='Synology Drive Client from the official site'
. $(dirname $0)/common.sh
urldir="$(epm tool eget --list https://archive.synology.com/download/Utility/SynologyDriveClient '/[0-9]*' | head -n1)"
[ -n "$urldir" ] || exit
is_stdcpp_enough "11.0" || VERSION="3.2.1"
epm install "$urldir/$PKGNAME*.x86_64.deb"
# it is so strange, package name contains 3.x.x, but package version is 7.x.x
[ "$VERSION" = "*" ] && VERSION="[0-9]*" || VERSION="$(echo "$VERSION" | sed -e 's|^7|3|')"
urldir="$(epm tool eget --list https://archive.synology.com/download/Utility/SynologyDriveClient "/$VERSION-*" | head -n1)"
[ -n "$urldir" ] || fatal "Can't get dir for $VERSION version on https://archive.synology.com/download/Utility/SynologyDriveClient"
epm install "$urldir/$PKGNAME-*.x86_64.deb"
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