get-scripts view dropbox @ rev 33

Update teamviewer (thanks llev)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 20 11:34:46 2015 +0100 (2015-03-20)
parents 38581c20c3f1
children 6ca05e6839e1
line source
1 WEB_SITE="http://www.dropbox.com"
2 SHORT_DESC="Dropbox daemon and client for online storage."
3 DEPENDS="python"
4 SUGGESTED="ntlmaps"
5 PLATFORM="lnx.x86" # or lnx.x86_64
6 TARBALL=$PACKAGE-$PLATFORM.tar.gz
7 WGET_URL="$WEB_SITE/download/?plat=$PLATFORM"
9 # Download the file
10 wget --no-check-certificate -O $TARBALL $WGET_URL
12 [ -f $TARBALL ] || abort_package "Could not download $TARBALL. Exiting."
14 tar xzf $TARBALL
15 # extracted pkg can be removed: Save RAM
16 rm -f $TARBALL
17 VERSION="$(cat $TMP_DIR/.dropbox-dist/VERSION)"
19 mkdir -p $PACKAGE-$VERSION/fs/usr/lib \
20 $PACKAGE-$VERSION/fs/usr/bin \
21 $PACKAGE-$VERSION/fs/usr/share/applications \
22 $PACKAGE-$VERSION/fs/usr/share/pixmaps
24 mv $TMP_DIR/.dropbox-dist $PACKAGE-$VERSION/fs/usr/lib/dropbox
25 mv -f $PACKAGE-$VERSION/fs/usr/lib/dropbox/dropbox-$PLATFORM*/* \
26 $PACKAGE-$VERSION/fs/usr/lib/dropbox
28 # Desktop file
29 cat > $PACKAGE-$VERSION/fs/usr/share/applications/dropbox.desktop << EOT
30 [Desktop Entry]
31 Type=Application
32 Name=Dropbox Storage
33 Exec=dropboxd
34 Icon=dropbox
35 Terminal=false
36 Categories=Network
37 EOT
39 # Symlink to have Dropbox in PATH and fake nautilus
40 cd $PACKAGE-$VERSION/fs/usr/bin
41 rm -f dropboxd nautilus
42 ln -s ../lib/dropbox/dropboxd .
43 ln -s /usr/bin/pcmanfm nautilus
44 cd ..
45 ln $(find lib | sed '/logo\.png$/!d;q') share/pixmaps/dropbox.png
47 cd $TMP_DIR
48 set +e