# HG changeset patch # User Pascal Bellard # Date 1392574374 0 # Node ID 38581c20c3f162375554cfcc9c4ee4689c555b50 # Parent 1b9497240a0773e08cd2f660d24d83861e4b6679 Add dropbox diff -r 1b9497240a07 -r 38581c20c3f1 LibreOffice --- a/LibreOffice Sun Feb 16 13:47:07 2014 +0000 +++ b/LibreOffice Sun Feb 16 18:12:54 2014 +0000 @@ -157,3 +157,4 @@ EOT status +set +e diff -r 1b9497240a07 -r 38581c20c3f1 OpenOffice3 --- a/OpenOffice3 Sun Feb 16 13:47:07 2014 +0000 +++ b/OpenOffice3 Sun Feb 16 18:12:54 2014 +0000 @@ -162,3 +162,4 @@ mv $1/fs/$file $(dirname $ROOT/$file) done } +set +e diff -r 1b9497240a07 -r 38581c20c3f1 bitcoin --- a/bitcoin Sun Feb 16 13:47:07 2014 +0000 +++ b/bitcoin Sun Feb 16 18:12:54 2014 +0000 @@ -43,3 +43,4 @@ Categories=Office; EOT cd ../.. +set +e diff -r 1b9497240a07 -r 38581c20c3f1 dropbox --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dropbox Sun Feb 16 18:12:54 2014 +0000 @@ -0,0 +1,53 @@ +WEB_SITE="http://www.dropbox.com" +SHORT_DESC="Dropbox daemon and client for online storage." +DEPENDS="python" +SUGGESTED="ntlmaps" +PLATFORM="lnx.x86" # or lnx.x86_64 +TARBALL=$PACKAGE-$PLATFORM.tar.gz +URL="$WEB_SITE/download/?plat=$PLATFORM" + +# Download the file +wget --no-check-certificate -O $TARBALL $URL + +[ -f $TARBALL ] || abort_package "Could not download $TARBALL. Exiting." + +tar xzf $TARBALL +# extracted pkg can be removed: Save RAM +rm -f $TARBALL +VERSION="$(cat $TMP_DIR/.dropbox-dist/VERSION)" + +mkdir -p $PACKAGE-$VERSION/fs/usr/lib \ + $PACKAGE-$VERSION/fs/usr/bin \ + $PACKAGE-$VERSION/fs/usr/share/applications \ + $PACKAGE-$VERSION/fs/usr/share/pixmaps + +mv $TMP_DIR/.dropbox-dist $PACKAGE-$VERSION/fs/usr/lib/dropbox + +# Custom Dropboxd +cat > $PACKAGE-$VERSION/fs/usr/lib/dropbox/dropboxd << "EOT" +#!/bin/sh +PAR=/usr/lib/dropbox +LD_LIBRARY_PATH=$PAR:$LD_LIBRARY_PATH exec $PAR/dropbox $@ +EOT + +# Desktop file +cat > $PACKAGE-$VERSION/fs/usr/share/applications/dropbox.desktop << EOT +[Desktop Entry] +Type=Application +Name=Dropbox Storage +Exec=dropboxd +Icon=dropbox +Terminal=false +Categories=Network +EOT + +# Symlink to have Dropbox in PATH and fake nautilus +cd $PACKAGE-$VERSION/fs/usr/bin +rm -f dropboxd nautilus +ln -s ../lib/dropbox/dropboxd . +ln -s /usr/bin/pcmanfm nautilus +cd .. +ln $(find lib | sed '/logo\.png$/!d;q') share/pixmaps/dropbox.png + +cd $TMP_DIR +set +e diff -r 1b9497240a07 -r 38581c20c3f1 litecoin --- a/litecoin Sun Feb 16 13:47:07 2014 +0000 +++ b/litecoin Sun Feb 16 18:12:54 2014 +0000 @@ -1,4 +1,3 @@ -set -x WEB_SITE="http://$PACKAGE.org/" SHORT_DESC="New digital currency for instant payments to anyone, anywhere." MAINTAINER="somebody@$PACKAGE.org" @@ -43,3 +42,4 @@ Categories=Office; EOT cd ../.. +set +e diff -r 1b9497240a07 -r 38581c20c3f1 opera --- a/opera Sun Feb 16 13:47:07 2014 +0000 +++ b/opera Sun Feb 16 18:12:54 2014 +0000 @@ -83,3 +83,4 @@ done rm -rf $PACKAGE-$VERSION/fs/usr/share/opera/locale-full rm -rf $PACKAGE-$VERSION/fs/usr/share/pixmaps +set +e