summaryrefslogtreecommitdiffstats
path: root/source/d/slacktrack/slacktrack.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/d/slacktrack/slacktrack.SlackBuild')
-rwxr-xr-xsource/d/slacktrack/slacktrack.SlackBuild27
1 files changed, 24 insertions, 3 deletions
diff --git a/source/d/slacktrack/slacktrack.SlackBuild b/source/d/slacktrack/slacktrack.SlackBuild
index ffd6d7d39..6e5ff906d 100755
--- a/source/d/slacktrack/slacktrack.SlackBuild
+++ b/source/d/slacktrack/slacktrack.SlackBuild
@@ -1,11 +1,32 @@
-#!/bin/sh
+#!/bin/bash
# Set initial variables:
-CWD=`pwd`
+cd $(dirname $0) ; CWD=$(pwd)
if [ "$TMP" = "" ]; then
TMP=/tmp
fi
-export VERSION=2.17
+PKGNAM=slacktrack
+export VERSION=2.18
+# Automatically determine the architecture we're building on:
+case "$( uname -m )" in
+ i?86) export ARCH=i586
+ PKGEXT=txz ;;
+ arm*) export ARCH=arm
+ PKGEXT=txz ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m )
+ PKGEXT=txz ;;
+esac
+BUILD=${BUILD:-2}
+export BUILD
+
+# 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
+ exit 0
+fi
if [ ! -d $TMP ]; then
mkdir -p $TMP # location to build the source