get-scripts diff dropbox @ rev 11

add flash-plugin
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 15 13:43:05 2014 +0000 (2014-04-15)
parents
children 552ec1a3614c
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dropbox	Tue Apr 15 13:43:05 2014 +0000
     1.3 @@ -0,0 +1,53 @@
     1.4 +WEB_SITE="http://www.dropbox.com"
     1.5 +SHORT_DESC="Dropbox daemon and client for online storage."
     1.6 +DEPENDS="python"
     1.7 +SUGGESTED="ntlmaps"
     1.8 +PLATFORM="lnx.x86"	# or lnx.x86_64
     1.9 +TARBALL=$PACKAGE-$PLATFORM.tar.gz
    1.10 +URL="$WEB_SITE/download/?plat=$PLATFORM"
    1.11 +
    1.12 +# Download the file
    1.13 +wget --no-check-certificate -O $TARBALL $URL 
    1.14 +
    1.15 +[ -f $TARBALL ] || abort_package "Could not download $TARBALL. Exiting."
    1.16 +
    1.17 +tar xzf $TARBALL
    1.18 +# extracted pkg can be removed: Save RAM
    1.19 +rm -f $TARBALL
    1.20 +VERSION="$(cat $TMP_DIR/.dropbox-dist/VERSION)"
    1.21 +
    1.22 +mkdir -p $PACKAGE-$VERSION/fs/usr/lib \
    1.23 +	$PACKAGE-$VERSION/fs/usr/bin \
    1.24 +	$PACKAGE-$VERSION/fs/usr/share/applications \
    1.25 +	$PACKAGE-$VERSION/fs/usr/share/pixmaps 
    1.26 +
    1.27 +mv $TMP_DIR/.dropbox-dist $PACKAGE-$VERSION/fs/usr/lib/dropbox
    1.28 +
    1.29 +# Custom Dropboxd
    1.30 +cat > $PACKAGE-$VERSION/fs/usr/lib/dropbox/dropboxd << "EOT"
    1.31 +#!/bin/sh
    1.32 +PAR=/usr/lib/dropbox
    1.33 +LD_LIBRARY_PATH=$PAR:$LD_LIBRARY_PATH exec $PAR/dropbox $@
    1.34 +EOT
    1.35 +
    1.36 +# Desktop file
    1.37 +cat > $PACKAGE-$VERSION/fs/usr/share/applications/dropbox.desktop << EOT
    1.38 +[Desktop Entry]
    1.39 +Type=Application
    1.40 +Name=Dropbox Storage
    1.41 +Exec=dropboxd
    1.42 +Icon=dropbox
    1.43 +Terminal=false
    1.44 +Categories=Network
    1.45 +EOT
    1.46 +
    1.47 +# Symlink to have Dropbox in PATH and fake nautilus
    1.48 +cd $PACKAGE-$VERSION/fs/usr/bin
    1.49 +rm -f dropboxd nautilus
    1.50 +ln -s ../lib/dropbox/dropboxd .
    1.51 +ln -s /usr/bin/pcmanfm nautilus
    1.52 +cd ..
    1.53 +ln $(find lib | sed '/logo\.png$/!d;q') share/pixmaps/dropbox.png
    1.54 +
    1.55 +cd $TMP_DIR
    1.56 +set +e