diff options
Diffstat (limited to 'network/dropbox/dropbox.SlackBuild')
-rw-r--r-- | network/dropbox/dropbox.SlackBuild | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/network/dropbox/dropbox.SlackBuild b/network/dropbox/dropbox.SlackBuild index 71254ee8d8..f84854721d 100644 --- a/network/dropbox/dropbox.SlackBuild +++ b/network/dropbox/dropbox.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for dropbox # Copyright 2017 cmyster amit.ugol@gmail.com -# Copyright 2019-2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2019-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -28,10 +28,13 @@ # Source for x86: https://www.dropbox.com/download?plat=lnx.x86 # Source for x86_64: https://www.dropbox.com/download?plat=lnx.x86_64 +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=dropbox -VERSION=${VERSION:-115.4.601} +VERSION=${VERSION:-196.4.6900} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -41,7 +44,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -84,4 +91,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |