diff options
Diffstat (limited to 'system/quake-par')
-rw-r--r-- | system/quake-par/quake-par.SlackBuild | 16 | ||||
-rw-r--r-- | system/quake-par/quake-par.info | 2 |
2 files changed, 14 insertions, 4 deletions
diff --git a/system/quake-par/quake-par.SlackBuild b/system/quake-par/quake-par.SlackBuild index 84d0fd6958..4578667996 100644 --- a/system/quake-par/quake-par.SlackBuild +++ b/system/quake-par/quake-par.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for quake-par @@ -22,11 +22,14 @@ # 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=quake-par SRCNAME=par VERSION=${VERSION:-0.03.01} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +39,14 @@ if [ -z "$ARCH" ]; then esac fi -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} @@ -109,4 +119,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 diff --git a/system/quake-par/quake-par.info b/system/quake-par/quake-par.info index ec5fda4979..3d1b8cdba4 100644 --- a/system/quake-par/quake-par.info +++ b/system/quake-par/quake-par.info @@ -1,5 +1,5 @@ PRGNAM="quake-par" -VERSION="0.3.1" +VERSION="0.03.01" HOMEPAGE="http://ftp.vim.org/ibiblio/games/quake/" DOWNLOAD="http://ftp.vim.org/ibiblio/games/quake/par-0.03.01.tar.gz" MD5SUM="39a73b5b95b04067dfc9acb8ef6bc9ff" |