get-scripts rev 2

Add dropbox
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 16 18:12:54 2014 +0000 (2014-02-16)
parents 1b9497240a07
children 8398dd6c1c2c
files LibreOffice OpenOffice3 bitcoin dropbox litecoin opera
line diff
     1.1 --- a/LibreOffice	Sun Feb 16 13:47:07 2014 +0000
     1.2 +++ b/LibreOffice	Sun Feb 16 18:12:54 2014 +0000
     1.3 @@ -157,3 +157,4 @@
     1.4  
     1.5  EOT
     1.6  status
     1.7 +set +e
     2.1 --- a/OpenOffice3	Sun Feb 16 13:47:07 2014 +0000
     2.2 +++ b/OpenOffice3	Sun Feb 16 18:12:54 2014 +0000
     2.3 @@ -162,3 +162,4 @@
     2.4  		mv $1/fs/$file $(dirname $ROOT/$file)
     2.5  	done
     2.6  }
     2.7 +set +e
     3.1 --- a/bitcoin	Sun Feb 16 13:47:07 2014 +0000
     3.2 +++ b/bitcoin	Sun Feb 16 18:12:54 2014 +0000
     3.3 @@ -43,3 +43,4 @@
     3.4  Categories=Office;
     3.5  EOT
     3.6  cd ../..
     3.7 +set +e
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/dropbox	Sun Feb 16 18:12:54 2014 +0000
     4.3 @@ -0,0 +1,53 @@
     4.4 +WEB_SITE="http://www.dropbox.com"
     4.5 +SHORT_DESC="Dropbox daemon and client for online storage."
     4.6 +DEPENDS="python"
     4.7 +SUGGESTED="ntlmaps"
     4.8 +PLATFORM="lnx.x86"	# or lnx.x86_64
     4.9 +TARBALL=$PACKAGE-$PLATFORM.tar.gz
    4.10 +URL="$WEB_SITE/download/?plat=$PLATFORM"
    4.11 +
    4.12 +# Download the file
    4.13 +wget --no-check-certificate -O $TARBALL $URL 
    4.14 +
    4.15 +[ -f $TARBALL ] || abort_package "Could not download $TARBALL. Exiting."
    4.16 +
    4.17 +tar xzf $TARBALL
    4.18 +# extracted pkg can be removed: Save RAM
    4.19 +rm -f $TARBALL
    4.20 +VERSION="$(cat $TMP_DIR/.dropbox-dist/VERSION)"
    4.21 +
    4.22 +mkdir -p $PACKAGE-$VERSION/fs/usr/lib \
    4.23 +	$PACKAGE-$VERSION/fs/usr/bin \
    4.24 +	$PACKAGE-$VERSION/fs/usr/share/applications \
    4.25 +	$PACKAGE-$VERSION/fs/usr/share/pixmaps 
    4.26 +
    4.27 +mv $TMP_DIR/.dropbox-dist $PACKAGE-$VERSION/fs/usr/lib/dropbox
    4.28 +
    4.29 +# Custom Dropboxd
    4.30 +cat > $PACKAGE-$VERSION/fs/usr/lib/dropbox/dropboxd << "EOT"
    4.31 +#!/bin/sh
    4.32 +PAR=/usr/lib/dropbox
    4.33 +LD_LIBRARY_PATH=$PAR:$LD_LIBRARY_PATH exec $PAR/dropbox $@
    4.34 +EOT
    4.35 +
    4.36 +# Desktop file
    4.37 +cat > $PACKAGE-$VERSION/fs/usr/share/applications/dropbox.desktop << EOT
    4.38 +[Desktop Entry]
    4.39 +Type=Application
    4.40 +Name=Dropbox Storage
    4.41 +Exec=dropboxd
    4.42 +Icon=dropbox
    4.43 +Terminal=false
    4.44 +Categories=Network
    4.45 +EOT
    4.46 +
    4.47 +# Symlink to have Dropbox in PATH and fake nautilus
    4.48 +cd $PACKAGE-$VERSION/fs/usr/bin
    4.49 +rm -f dropboxd nautilus
    4.50 +ln -s ../lib/dropbox/dropboxd .
    4.51 +ln -s /usr/bin/pcmanfm nautilus
    4.52 +cd ..
    4.53 +ln $(find lib | sed '/logo\.png$/!d;q') share/pixmaps/dropbox.png
    4.54 +
    4.55 +cd $TMP_DIR
    4.56 +set +e
     5.1 --- a/litecoin	Sun Feb 16 13:47:07 2014 +0000
     5.2 +++ b/litecoin	Sun Feb 16 18:12:54 2014 +0000
     5.3 @@ -1,4 +1,3 @@
     5.4 -set -x
     5.5  WEB_SITE="http://$PACKAGE.org/"
     5.6  SHORT_DESC="New digital currency for instant payments to anyone, anywhere."
     5.7  MAINTAINER="somebody@$PACKAGE.org"
     5.8 @@ -43,3 +42,4 @@
     5.9  Categories=Office;
    5.10  EOT
    5.11  cd ../..
    5.12 +set +e
     6.1 --- a/opera	Sun Feb 16 13:47:07 2014 +0000
     6.2 +++ b/opera	Sun Feb 16 18:12:54 2014 +0000
     6.3 @@ -83,3 +83,4 @@
     6.4  done
     6.5  rm -rf $PACKAGE-$VERSION/fs/usr/share/opera/locale-full
     6.6  rm -rf $PACKAGE-$VERSION/fs/usr/share/pixmaps
     6.7 +set +e