summaryrefslogtreecommitdiff
path: root/network/dropbox/dropbox.SlackBuild
diff options
context:
space:
mode:
authorAmit Ugol <amit.ugol@gmail.com>2017-03-13 22:59:47 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-03-18 06:58:28 +0700
commitb70cbe5a665d2978e5f7f326bf00eca2aa21cd7d (patch)
tree7843e4f5252b42214ff20ddecb299c6305146bce /network/dropbox/dropbox.SlackBuild
parent2c96caa882fcd5e0724c467b9c17fda58fa6e619 (diff)
downloadslackbuilds-b70cbe5a665d2978e5f7f326bf00eca2aa21cd7d.tar.gz
network/dropbox: Updated for version 21.4.25.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/dropbox/dropbox.SlackBuild')
-rw-r--r--network/dropbox/dropbox.SlackBuild42
1 files changed, 20 insertions, 22 deletions
diff --git a/network/dropbox/dropbox.SlackBuild b/network/dropbox/dropbox.SlackBuild
index a67cf27c18..9b770757c5 100644
--- a/network/dropbox/dropbox.SlackBuild
+++ b/network/dropbox/dropbox.SlackBuild
@@ -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