diff options
Diffstat (limited to 'development/power-architect/power-architect.SlackBuild')
-rw-r--r-- | development/power-architect/power-architect.SlackBuild | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/development/power-architect/power-architect.SlackBuild b/development/power-architect/power-architect.SlackBuild index 1c660935b1..c9c245e74f 100644 --- a/development/power-architect/power-architect.SlackBuild +++ b/development/power-architect/power-architect.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for power-architect @@ -23,13 +23,23 @@ # This script is just a binary repackaging. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=power-architect VERSION=${VERSION:-1.0.6} ARCH=noarch 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} @@ -79,4 +89,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 |