get-scripts annotate dropbox @ rev 34

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