Commit 8851247d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add synology-drive support

parent b4e612db
#!/bin/sh
PKGNAME=synology-drive
SUPPORTEDARCHES="x86_64"
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
epm install "$urldir/$PKGNAME*.x86_64.deb"
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=synology-drive
PRODUCTDIR=/opt/Synology/SynologyDrive
. $(dirname $0)/common.sh
cd $BUILDROOT/$PRODUCTDIR || exit
# disable autoupdate
remove_file $PRODUCTDIR/package/cloudstation/bin/cloud-drive-auto-updater
epm assure patchelf || exit
for i in lib/lib*.so.* package/cloudstation/lib/lib*.so.* ; do
a= patchelf --set-rpath '$ORIGIN' $i
done
# TODO
#for i in package/cloudstation/lib/plugins/lib*.so ; do
# a= patchelf --set-rpath '$ORIGIN' $i
#done
for i in bin/launcher package/cloudstation/bin/cloud-drive-* ; do
a= patchelf --set-rpath '$ORIGIN/../lib' $i
done
# TODO: some dependency leak?
# ignore embedded libs
filter_from_requires libQt5
epm install --skip-installed coreutils glib2 libdbus libfontconfig1 libfreetype libgtk+3 libICE libpango libSM libX11 libxcb libxkbcommon libXrender
# Suggests
# epm install --skip-installed libnautilus libnautilus-extension-compat
filter_from_requires libnautilus
# TODO: parse
# https://www.synology.com/api/support/findDownloadInfo?lang=ru-ru&product=DS2411%2B&major=6&minor=2
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