get-scripts view dropbox @ rev 54

Add zd1201-firmware
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 23 13:31:41 2016 +0200 (2016-04-23)
parents ec186679eb26
children 62d94e6800db
line source
1 SHORT_DESC="Dropbox daemon and client for online storage."
2 WEB_SITE="http://www.dropbox.com"
3 # end of get.list data
4 DEPENDS="python"
5 SUGGESTED="ntlmaps"
6 PLATFORM="lnx.x86" # or lnx.x86_64
7 TARBALL=$PACKAGE-$PLATFORM.tar.gz
8 WGET_URL="$WEB_SITE/download/?plat=$PLATFORM"
10 # Download the file
11 wget --no-check-certificate -O $TARBALL $WGET_URL
13 [ -f $TARBALL ] || abort_package "Could not download $TARBALL. Exiting."
15 tar xzf $TARBALL
16 # extracted pkg can be removed: Save RAM
17 rm -f $TARBALL
18 VERSION="$(cat $tmp_dir/.dropbox-dist/VERSION)"
20 mkdir -p $PACKAGE-$VERSION/fs/usr/lib \
21 $PACKAGE-$VERSION/fs/usr/bin \
22 $PACKAGE-$VERSION/fs/usr/share/applications \
23 $PACKAGE-$VERSION/fs/usr/share/pixmaps
25 mv $tmp_dir/.dropbox-dist $PACKAGE-$VERSION/fs/usr/lib/dropbox
26 mv -f $PACKAGE-$VERSION/fs/usr/lib/dropbox/dropbox-$PLATFORM*/* \
27 $PACKAGE-$VERSION/fs/usr/lib/dropbox
29 # Desktop file
30 cat > $PACKAGE-$VERSION/fs/usr/share/applications/dropbox.desktop << EOT
31 [Desktop Entry]
32 Type=Application
33 Name=Dropbox Storage
34 Exec=dropboxd
35 Icon=dropbox
36 Terminal=false
37 Categories=Network;FileTransfer;
38 EOT
40 # Symlink to have Dropbox in PATH and fake nautilus
41 cd $PACKAGE-$VERSION/fs/usr/bin
42 rm -f dropboxd nautilus
43 ln -s ../lib/dropbox/dropboxd .
44 ln -s /usr/bin/pcmanfm nautilus
45 cd ..
46 ln $(find lib | sed '/logo\.png$/!d;q') share/pixmaps/dropbox.png
48 cd $tmp_dir