network/dropbox: Updated for version 21.4.25.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Amit Ugol 2017-03-13 22:59:47 +00:00 committed by Willy Sudiarto Raharjo
parent 2c96caa882
commit b70cbe5a66
6 changed files with 772 additions and 1141 deletions

View file

@ -1,9 +1,3 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/pixmaps >/dev/null 2>&1
fi
fi

View file

@ -1,7 +1,8 @@
#!/bin/sh
# Copyright 2017 Amit Ugol <amit.ugol@gmail.com>
#
# Slackware build script for dropbox
# Copyright 2017 cmyster amit.ugol@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -21,9 +22,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#####
# Public changelog: https://www.dropbox.com/release_notes
# SlackBuild changelog:
# 13/Mar/2017 * Updated to latest version 21.4.25
# * Rewrote this script.
# 09/Feb/2017 * Updated to latest version 19.4.13
# 29/Nov/2016 * Updated to latest version 15.4.22
# 25/Oct/2016 * Updated to latest version 13.4.21
@ -41,9 +44,7 @@
# * Some needed changelog trimming. 2 years are enough.
PRGNAM=dropbox
PACKNAM=dropbox-lnx
VERSION=${VERSION:-19.4.13}
VERSION=${VERSION:-21.4.25}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -60,24 +61,21 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SOURCE="x86"
elif [ "$ARCH" = "i686" ]; then
SOURCE="x86"
elif [ "$ARCH" = "x86_64" ]; then
SOURCE="x86_64"
else
SOURCE="x86"
fi
case "$ARCH" in
x86_64) EXTPACKNAME="_64" ;;
*) EXTPACKNAME="" ;;
esac
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
mkdir -p $TMP $PKG
cd $TMP
rm -rf .$PRGNAM-dist
tar xvf $CWD/$PACKNAM.$SOURCE-$VERSION.tar.gz
cd .$PRGNAM-dist
rm -rf $PRGNAM
mkdir $PRGNAM
cd $PRGNAM
tar xvf $CWD/$PRGNAM-lnx.x86$EXTPACKNAME-$VERSION.tar.gz
cd .dropbox-dist
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -85,15 +83,15 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir $PKG/opt
mkdir -p $PKG/usr/bin
cp -R ../.$PRGNAM-dist $PKG/opt/dropbox
mkdir -p $PKG/opt/dropbox $PKG/usr/bin
cp -R . $PKG/opt/dropbox
ln -s /opt/dropbox/dropboxd $PKG/usr/bin/dropboxd
install -D -m 644 $CWD/dropbox.desktop $PKG/usr/share/applications/dropbox.desktop
install -D -m 644 $CWD/dropbox.png $PKG/usr/share/pixmaps/dropbox.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp $CWD/policies $PKG/usr/doc/$PRGNAM-$VERSION/
cp $CWD/folders $PKG/usr/doc/$PRGNAM-$VERSION/
cp $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION/
mkdir -p $PKG/install

View file

@ -1,10 +1,10 @@
PRGNAM="dropbox"
VERSION="19.4.13"
VERSION="21.4.25"
HOMEPAGE="http://www.dropbox.com"
DOWNLOAD="https://d1ilhw0800yew8.cloudfront.net/client/dropbox-lnx.x86-19.4.13.tar.gz"
MD5SUM="29ebe634897b610d33a3bc7b9cf6b32a"
DOWNLOAD_x86_64="https://d1ilhw0800yew8.cloudfront.net/client/dropbox-lnx.x86_64-19.4.13.tar.gz"
MD5SUM_x86_64="76e9bb32388654ead6ae16ce69c4b732"
DOWNLOAD="https://d1ilhw0800yew8.cloudfront.net/client/dropbox-lnx.x86-21.4.25.tar.gz"
MD5SUM="4d17e0e0e7b11b18fa0d7b18221aa0de"
DOWNLOAD_x86_64="https://d1ilhw0800yew8.cloudfront.net/client/dropbox-lnx.x86_64-21.4.25.tar.gz"
MD5SUM_x86_64="dfb7678df74ea5a6b794b56488255770"
REQUIRES=""
MAINTAINER="Amit Ugol"
EMAIL="amit.ugol@gmail.com"

12
network/dropbox/folders Normal file
View file

@ -0,0 +1,12 @@
Dropbox folders explained.
The package installs dropbox into /opt/dropbox/dropbox-lnx.<ARCH>-<VERSION>.
When a user starts dropbox for the first time, this location serves as the
application location (dist). This negates the need to download the entire
client once per user.
Dropbox client is self upgrading, and the next time a new version is released,
each dropbox user will get a ~/.dropbox-dist that includes the new client.
The next time that the user will start dropbox, it will start from the home
dist. From that moment and as long as the user home dist remains, the client
will start from it, not from /opt. Only users with no home dist folder (new
user or deleted dist folder) will start the client from /opt.

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,7 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
dropbox: dropbox (store, sync and share files online)
dropbox: Dropbox (store, sync and share files online)
dropbox:
dropbox: Dropbox is a free service that lets you bring all your photos, docs,
dropbox: and videos anywhere. This means that any file you save to your