File tree Expand file tree Collapse file tree 3 files changed +68
-0
lines changed
Expand file tree Collapse file tree 3 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ DIST synology-drive-client-17877.x86_64.deb 105028040 BLAKE2B 7ca79e95e450bed3f0e9ded7c4acddafb254e947f308b1282cc8b13440db85bdec0e55a0b47261837478cc8ed8e1e6ce3601e4b3cebf51b3a9710de2debbe341 SHA512 aa42f374521c19efb8213c34369bd462882ce3236b457cd5a28acdf5d4620aaf30b7058cb71fa80571d05727afbfd311454c277beda7467e386c3e7082de04f4
Original file line number Diff line number Diff line change 1+ # Copyright 1999-2025 Gentoo Authors
2+ # Distributed under the terms of the GNU General Public License v2
3+
4+ EAPI=8
5+
6+ inherit desktop xdg-utils
7+
8+ # Build, I guess.
9+ BV=" 17877"
10+
11+ DESCRIPTION=" Client for the Synology Drive Server for syncing and sharing files."
12+ HOMEPAGE=" https://kb.synology.com/en-global/DSM/help/SynologyDriveClient/synologydriveclient?version=7"
13+ SRC_URI=" https://global.synologydownload.com/download/Utility/SynologyDriveClient/${PV} -${BV} /Ubuntu/Installer/synology-drive-client-${BV} .x86_64.deb"
14+ S=" ${WORKDIR} "
15+
16+ LICENSE=" "
17+ SLOT=" 0"
18+ KEYWORDS=" ~amd64"
19+ IUSE=" nautilus"
20+
21+ RESTRICT=" bindist mirror strip"
22+
23+ RDEPEND=" nautilus? ( gnome-base/nautilus )"
24+
25+ src_unpack () {
26+ default
27+ unpack " ${WORKDIR} " /data.tar.xz
28+
29+ # Provided docs are useless
30+ rm -r usr/share/doc || die
31+ }
32+
33+ src_install () {
34+ if ! use nautilus; then
35+ rm -f opt/Synology/SynologyDrive/package/cloudstation/icon-overlay/15/lib/plugin-cb{,-4}.so || die
36+ fi
37+ # XXX: I can't find libQt5Pdf.so, really where it can be?
38+ rm -f opt/Synology/SynologyDrive/package/cloudstation/lib/plugins/imageformats/libqpdf.so || die
39+ # NOTE: probably old library
40+ rm -rf usr/lib/nautilus/extensions-3.0 || die
41+
42+ insinto /
43+ doins -r opt/
44+ doins -r usr/
45+
46+ # Fix permissions
47+ chmod +x " ${ED} " /usr/bin/* || die
48+ chmod +x " ${ED} " /opt/Synology/SynologyDrive/bin/* || die
49+
50+ domenu usr/share/applications/" ${PN} " .desktop
51+ }
52+
53+ pkg_postinst () {
54+ xdg_desktop_database_update
55+ xdg_icon_cache_update
56+ }
57+
58+ pkg_postrm () {
59+ xdg_desktop_database_update
60+ xdg_icon_cache_update
61+ }
Original file line number Diff line number Diff line change 1+ # Copyright 1999-2025 Gentoo Authors
2+ # Distributed under the terms of the GNU General Public License v2
3+
4+ # Keep them sorted
5+
6+ nautilus - Add extensions for Nautilus file manager
You can’t perform that action at this time.
0 commit comments