get-scripts view dropbox @ rev 36

bitcoin: update
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 29 16:35:57 2015 +0200 (2015-04-29)
parents 552ec1a3614c
children ec186679eb26
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
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
49 set +e