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