get-scripts diff dropbox @ rev 63
Add nanozip
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 10 14:15:08 2016 +0200 (2016-08-10) |
parents | 2cdf3e534506 |
children | 8f1515cc3333 |
line diff
1.1 --- a/dropbox Sat Apr 23 13:31:41 2016 +0200 1.2 +++ b/dropbox Wed Aug 10 14:15:08 2016 +0200 1.3 @@ -10,24 +10,21 @@ 1.4 # Download the file 1.5 wget --no-check-certificate -O $TARBALL $WGET_URL 1.6 1.7 -[ -f $TARBALL ] || abort_package "Could not download $TARBALL. Exiting." 1.8 +[ -f $TARBALL ] || abort_package 1.9 1.10 tar xzf $TARBALL 1.11 # extracted pkg can be removed: Save RAM 1.12 rm -f $TARBALL 1.13 -VERSION="$(cat $tmp_dir/.dropbox-dist/VERSION)" 1.14 +VERSION="$(cat .dropbox-dist/VERSION)" 1.15 1.16 -mkdir -p $PACKAGE-$VERSION/fs/usr/lib \ 1.17 - $PACKAGE-$VERSION/fs/usr/bin \ 1.18 - $PACKAGE-$VERSION/fs/usr/share/applications \ 1.19 - $PACKAGE-$VERSION/fs/usr/share/pixmaps 1.20 +USR=$PACKAGE-$VERSION/fs/usr 1.21 +mkdir -p $USR/lib $USR/bin $USR/share/applications $USR/share/pixmaps 1.22 1.23 -mv $tmp_dir/.dropbox-dist $PACKAGE-$VERSION/fs/usr/lib/dropbox 1.24 -mv -f $PACKAGE-$VERSION/fs/usr/lib/dropbox/dropbox-$PLATFORM*/* \ 1.25 - $PACKAGE-$VERSION/fs/usr/lib/dropbox 1.26 +mv .dropbox-dist $USR/lib/dropbox 1.27 +mv -f $USR/lib/dropbox/dropbox-$PLATFORM*/* $USR/lib/dropbox 1.28 1.29 # Desktop file 1.30 -cat > $PACKAGE-$VERSION/fs/usr/share/applications/dropbox.desktop << EOT 1.31 +cat > $USR/share/applications/dropbox.desktop << EOT 1.32 [Desktop Entry] 1.33 Type=Application 1.34 Name=Dropbox Storage 1.35 @@ -38,11 +35,7 @@ 1.36 EOT 1.37 1.38 # Symlink to have Dropbox in PATH and fake nautilus 1.39 -cd $PACKAGE-$VERSION/fs/usr/bin 1.40 -rm -f dropboxd nautilus 1.41 -ln -s ../lib/dropbox/dropboxd . 1.42 -ln -s /usr/bin/pcmanfm nautilus 1.43 -cd .. 1.44 -ln $(find lib | sed '/logo\.png$/!d;q') share/pixmaps/dropbox.png 1.45 - 1.46 -cd $tmp_dir 1.47 +rm -f $USR/bin/dropboxd $USR/bin/nautilus 1.48 +ln -s ../lib/dropbox/dropboxd $USR/bin 1.49 +ln -s /usr/bin/pcmanfm $USR/bin/nautilus 1.50 +ln $(find $USR/lib | sed '/logo\.png$/!d;q') $USR/share/pixmaps/dropbox.png