diff options
Diffstat (limited to 'network/insync/insync.SlackBuild')
-rw-r--r-- | network/insync/insync.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/network/insync/insync.SlackBuild b/network/insync/insync.SlackBuild index 3553f067f7..095a34145f 100644 --- a/network/insync/insync.SlackBuild +++ b/network/insync/insync.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for "insync". @@ -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.27.40677} +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 |