diff options
Diffstat (limited to 'development/mtasc/mtasc.SlackBuild')
-rw-r--r-- | development/mtasc/mtasc.SlackBuild | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/development/mtasc/mtasc.SlackBuild b/development/mtasc/mtasc.SlackBuild index 2e8115b53b..d9b3583161 100644 --- a/development/mtasc/mtasc.SlackBuild +++ b/development/mtasc/mtasc.SlackBuild @@ -1,31 +1,39 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for MTASC # Written by Andres Fuentes (rafu@riseup.net) # This script is public domain -# Modified by Robby Workman <rworkman@slackbuilds.org> +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mtasc VERSION=${VERSION:-1.15} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; 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} -if [ "$ARCH" = "i486" ]; then +if [ "$ARCH" = "i586" ]; then SRCTAR="$PRGNAM-$VERSION-linux.tgz" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then @@ -66,4 +74,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 |