diff options
Diffstat (limited to 'development/amd-app-sdk/amd-app-sdk.SlackBuild')
-rw-r--r-- | development/amd-app-sdk/amd-app-sdk.SlackBuild | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/development/amd-app-sdk/amd-app-sdk.SlackBuild b/development/amd-app-sdk/amd-app-sdk.SlackBuild index a17be413dc..6b3922ffc6 100644 --- a/development/amd-app-sdk/amd-app-sdk.SlackBuild +++ b/development/amd-app-sdk/amd-app-sdk.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for amd-app-sdk @@ -30,11 +30,14 @@ # 20121220 - Updated for version 2.6: incompatible packaging with 2.4- versions # 20130530 - Updated for version 2.8 and made samples optional +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=amd-app-sdk INT_NAME=AMD-APP-SDK VERSION=${VERSION:-2.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SAMPLES=${SAMPLES:-no} # (only x86 and x86_64 are supported) @@ -46,7 +49,14 @@ case "$TESTARCH" in exit 1 ;; esac -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} @@ -138,4 +148,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 |