diff options
Diffstat (limited to 'system/cdwrite/cdwrite.SlackBuild')
-rw-r--r-- | system/cdwrite/cdwrite.SlackBuild | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/system/cdwrite/cdwrite.SlackBuild b/system/cdwrite/cdwrite.SlackBuild index 812c9c9702..a99446ef4c 100644 --- a/system/cdwrite/cdwrite.SlackBuild +++ b/system/cdwrite/cdwrite.SlackBuild @@ -1,16 +1,26 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for cdwrite # Written by Cezary M. Kruk (c.kruk@bigfoot.com) +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=cdwrite VERSION=${VERSION:-3.5.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -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} @@ -59,4 +69,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 |