summaryrefslogtreecommitdiffstats
path: root/dropbox-client
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2010-12-18 23:35:58 +0000
committer Eric Hameleers <alien@slackware.com>2010-12-18 23:35:58 +0000
commit602781afaabf8a3188ba1b969b182e61c56ced2c (patch)
tree53085ccee6f854db48724d30254ba13a21abcdd6 /dropbox-client
parentff7a8252802473eb2d7fc20eef081463989f29e5 (diff)
downloadasb-602781afaabf8a3188ba1b969b182e61c56ced2c.tar.gz
asb-602781afaabf8a3188ba1b969b182e61c56ced2c.tar.xz
Updated the client to 0.6.7. Fixed ARCH detection. Updated the fake nautilus script to deal with the added "--no-desktop" parameter it wants to pass to the real nautilus
Diffstat (limited to 'dropbox-client')
-rwxr-xr-xdropbox-client/build/dropbox-client.SlackBuild41
1 files changed, 30 insertions, 11 deletions
diff --git a/dropbox-client/build/dropbox-client.SlackBuild b/dropbox-client/build/dropbox-client.SlackBuild
index 8b5c99dc..785f6d97 100755
--- a/dropbox-client/build/dropbox-client.SlackBuild
+++ b/dropbox-client/build/dropbox-client.SlackBuild
@@ -42,6 +42,9 @@
# * Updated.
# 0.6.3-1: 22/jul/2010 by Eric Hameleers <alien@slackware.com>
# * Updated.
+# 0.6.7-1: 18/dec/2010 by Eric Hameleers <alien@slackware.com>
+# * Updated. Also fix the fake nautilus script to filter out the
+# "--no-desktop" argument passed by dropbox to the real nautilus.
#
# Run 'sh dropbox-client.SlackBuild' to build a Slackware package.
# The package (.tgz) and .txt file as well as build logs are created in /tmp .
@@ -53,7 +56,7 @@
PRGNAM=dropbox-client
RPMNAM=nautilus-dropbox
-VERSION=${VERSION:-0.6.3}
+VERSION=${VERSION:-0.6.7}
MINOR=${MINOR:-1}
BUILD=${BUILD:-1}
TAG=${TAG:-alien}
@@ -67,15 +70,13 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# Automatically determine the architecture we're building on:
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) export ARCH=i386 ;;
- x86_64) export ARCH=x86_64 ;;
- *) echo "Only x86 and x86_64 are supported platforms!"
- exit 1
- ;;
- esac
-fi
+case "${ARCH:-$( uname -m )}" in
+ i?86) export ARCH=i386 ;;
+ x86_64) export ARCH=x86_64 ;;
+ *) echo "Only x86 and x86_64 are supported platforms!"
+ exit 1
+ ;;
+esac
SOURCE="$SRCDIR/${RPMNAM}-${VERSION}-${MINOR}.fedora.${ARCH}.rpm"
SRCURL="http://linux.dropbox.com/packages/${RPMNAM}-${VERSION}-${MINOR}.fedora.${ARCH}.rpm"
@@ -148,7 +149,18 @@ explodepkg $TMP/tmp-$PRGNAM/$( basename $SOURCE .rpm ).tgz
mkdir -p $PKG/usr/bin
cat <<"EOT" > $PKG/usr/bin/nautilus.new
#!/bin/bash
-xdg-open $@
+# Filter out "--no-desktop" from $@ which dropbox passes to the real nautilus:
+declare -a Arguments
+for i; do
+ case "$i" in
+ --no-desktop)
+ ;;
+ *)
+ Arguments[${#Arguments[@]}]="$i"
+ ;;
+ esac
+done
+xdg-open "${Arguments[@]}"
exit 0
EOT
chmod 755 $PKG/usr/bin/nautilus.new
@@ -180,6 +192,13 @@ if [ -x usr/bin/update-desktop-database ]; then
chroot . /usr/bin/update-desktop-database /usr/share/applications > /dev/null 2>&1
fi
+# Update hicolor theme cache:
+if [ -d usr/share/icons/hicolor ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ chroot . /usr/bin/gtk-update-icon-cache -f -t usr/share/icons/hicolor 1> /dev/null 2> /dev/null
+ fi
+fi
+
EOT
# Add documentation: