diff options
Diffstat (limited to 'development/likepython/likepython.SlackBuild')
-rw-r--r-- | development/likepython/likepython.SlackBuild | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/development/likepython/likepython.SlackBuild b/development/likepython/likepython.SlackBuild index a4248aad04..4e9b1ef05c 100644 --- a/development/likepython/likepython.SlackBuild +++ b/development/likepython/likepython.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackbuild for likepython # Written by JK Wood <joshuakwood@gmail.com> # @@ -16,13 +16,23 @@ # wrong and prevent it from happening in the future. # In which case, I may just send YOU five dollars. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=likepython VERSION=${VERSION:-0.1} 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} @@ -55,4 +65,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 |