summaryrefslogtreecommitdiffstats
path: root/network/insync/insync.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/insync/insync.SlackBuild')
-rw-r--r--network/insync/insync.SlackBuild22
1 files changed, 16 insertions, 6 deletions
diff --git a/network/insync/insync.SlackBuild b/network/insync/insync.SlackBuild
index 42402ecbe2..095a34145f 100644
--- a/network/insync/insync.SlackBuild
+++ b/network/insync/insync.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for "insync".
# Copyright 2013-2016 Marcel Saegebarth <marc@mos6581.de>
-# Copyright 2019 Pedro R.M. Júnior <pedrormjunior@gmail.com>
+# Copyright 2019,2020 Pedro R.M. Júnior <pedrormjunior@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,11 +26,14 @@
# Adapted from Willy Sudiarto Raharjo <willysr@slackware-id.org> "insync-kde"
# https://github.com/willysr/SlackHacks/tree/master/SlackBuilds/insync-kde
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=insync
-DEBNAM=bionic
-VERSION=${VERSION:-3.0.23.40579}
+DEBNAM=xenial
+VERSION=${VERSION:-3.3.9.40955}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -54,7 +57,14 @@ else
exit 1
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+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}
@@ -89,4 +99,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