summaryrefslogtreecommitdiff
path: root/network/rclone/rclone.SlackBuild
diff options
context:
space:
mode:
authorAndrew Payne <phalange@komputermatrix.com>2020-05-02 11:44:41 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-05-02 11:44:41 +0700
commit792c18b3f36555ea3f764c51f2b2e77e477aa842 (patch)
tree63c3e9bb3db9217c0baa642ac1f27d40e61d169b /network/rclone/rclone.SlackBuild
parentf914ec8933487ea89492df5870b637a648296434 (diff)
downloadslackbuilds-792c18b3f36555ea3f764c51f2b2e77e477aa842.tar.gz
system/rclone: Updated for version 1.51.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/rclone/rclone.SlackBuild')
-rw-r--r--network/rclone/rclone.SlackBuild57
1 files changed, 25 insertions, 32 deletions
diff --git a/network/rclone/rclone.SlackBuild b/network/rclone/rclone.SlackBuild
index 8cb280b95d..2c836702d2 100644
--- a/network/rclone/rclone.SlackBuild
+++ b/network/rclone/rclone.SlackBuild
@@ -1,7 +1,6 @@
#!/bin/sh
-# Slackware build script for rclone
-
+# Copyright 2019-2020 Andrew Payne, Boston MA <phalange@komputermatrix.com>
# Copyright 2017-2018 Rodrigo Gimenez <estrod[at]zoho[dot]com>
# All rights reserved.
#
@@ -22,12 +21,16 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Version History
+# 4-29-2020 update to version 1.50
PRGNAM=rclone
-VERSION=${VERSION:-1.42}
+VERSION=${VERSION:-1.51.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+set -e
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -36,52 +39,42 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
-if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
- SUFFIX="linux-386"
-elif [ "$ARCH" = "x86_64" ]; then
- SUFFIX="linux-amd64"
-elif [ "$ARCH" = "arm" ]; then
- SUFFIX="linux-arm"
+if [ "$ARCH" = "x86_64" ]; then
+ BIT="64bit"
else
- echo "$ARCH is not supported." >&2
+ echo "$ARCH is not supported."
exit 1
fi
-set -e
-
-rm -rf $PKG
+TMP=${TMP:-/tmp/SBo}
+CWD=$(pwd)
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-v$VERSION-$SUFFIX
-unzip $CWD/$PRGNAM-v$VERSION-$SUFFIX.zip
-cd $PRGNAM-v$VERSION-$SUFFIX
+rm -rf $PRGNAM-$VERSION
+unzip -o $CWD/$PRGNAM-v$VERSION-linux-amd64.zip
+cd $PRGNAM-v$VERSION-linux-amd64
chown -R root:root .
+
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-install -Ddm755 $PKG/usr/bin
-install -m 775 rclone $PKG/usr/bin
-
-install -Ddm 755 $PKG/usr/man/man1
-cp rclone.1 $PKG/usr/man/man1
+rm -rf $PKG
+mkdir -p $PKG/usr/bin/
+mkdir -p $PKG/usr/man/man1/
+cp rclone $PKG/usr/bin/
+cp rclone.1 $PKG/usr/man/man1/
find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+for i in $( find $PKG/usr/ -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-
-cp -a \
- README.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cp -a README.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-bin.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc