diff options
Diffstat (limited to 'desktop/insync-thunar')
-rw-r--r-- | desktop/insync-thunar/insync-thunar.SlackBuild | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/desktop/insync-thunar/insync-thunar.SlackBuild b/desktop/insync-thunar/insync-thunar.SlackBuild index a915912707..dce2f847f6 100644 --- a/desktop/insync-thunar/insync-thunar.SlackBuild +++ b/desktop/insync-thunar/insync-thunar.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for "insync-thunar". @@ -22,6 +22,8 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=insync-thunar DEBNAM=precise VERSION=${VERSION:-1.3.12.36116} @@ -29,8 +31,16 @@ ARCH=noarch DEBARCH=all BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +# 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 -CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -57,4 +67,4 @@ 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 |