get-scripts view dropbox @ rev 69

palemoon: fix VERSION
author Richard Dunbar <mojo@slitaz.org>
date Fri Jun 16 02:55:30 2017 -0400 (2017-06-16)
parents 2cdf3e534506
children 8f1515cc3333
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
15 tar xzf $TARBALL
16 # extracted pkg can be removed: Save RAM
17 rm -f $TARBALL
18 VERSION="$(cat .dropbox-dist/VERSION)"
20 USR=$PACKAGE-$VERSION/fs/usr
21 mkdir -p $USR/lib $USR/bin $USR/share/applications $USR/share/pixmaps
23 mv .dropbox-dist $USR/lib/dropbox
24 mv -f $USR/lib/dropbox/dropbox-$PLATFORM*/* $USR/lib/dropbox
26 # Desktop file
27 cat > $USR/share/applications/dropbox.desktop << EOT
28 [Desktop Entry]
29 Type=Application
30 Name=Dropbox Storage
31 Exec=dropboxd
32 Icon=dropbox
33 Terminal=false
34 Categories=Network;FileTransfer;
35 EOT
37 # Symlink to have Dropbox in PATH and fake nautilus
38 rm -f $USR/bin/dropboxd $USR/bin/nautilus
39 ln -s ../lib/dropbox/dropboxd $USR/bin
40 ln -s /usr/bin/pcmanfm $USR/bin/nautilus
41 ln $(find $USR/lib | sed '/logo\.png$/!d;q') $USR/share/pixmaps/dropbox.png