diff options
Diffstat (limited to 'network/SpiderOakONE/SpiderOakONE.SlackBuild')
-rw-r--r-- | network/SpiderOakONE/SpiderOakONE.SlackBuild | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/network/SpiderOakONE/SpiderOakONE.SlackBuild b/network/SpiderOakONE/SpiderOakONE.SlackBuild index d26c38d6a0..d514cd6259 100644 --- a/network/SpiderOakONE/SpiderOakONE.SlackBuild +++ b/network/SpiderOakONE/SpiderOakONE.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for SpiderOak @@ -25,14 +25,24 @@ # Written by Alfredo Tomasini <alto.tom@gmail.com> # SpiderOakONE-7.5.0-slack_tar_x64.tgz +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM="SpiderOakONE" EXTRA="slack_tar_x64" VERSION=${VERSION:-7.5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=`uname -a | cut -f12 -d\ ` -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} @@ -54,5 +64,8 @@ mv $PKG/usr/share/doc/SpiderOakONE/* $PKG/usr/doc/$PRGNAM-$VERSION rm -rf $PKG/usr/share/doc/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + 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 |