diff options
Diffstat (limited to 'system/sbotools')
-rw-r--r-- | system/sbotools/README | 10 | ||||
-rw-r--r-- | system/sbotools/sbotools.SlackBuild | 18 |
2 files changed, 21 insertions, 7 deletions
diff --git a/system/sbotools/README b/system/sbotools/README index 4440eedd30..35a9657997 100644 --- a/system/sbotools/README +++ b/system/sbotools/README @@ -5,12 +5,14 @@ interface to slackbuilds.org. Its features include requirement handling and the ability to handle 32-bit and compat32 builds on multilib x86_64 systems. -There are man pages for each of the sbo* commands, and more documentation, -as well as online versions of the man pages, can be found at +There are man pages for each of the sbo* commands, and more +documentation, as well as online versions of the man pages, can be +found at: http://pink-mist.github.io/sbotools/documentation/ -sbotools bundles the required Perl module Sort::Versions with it. This does -not interfere with a copy installed from the CPAN, or from slackbuilds.org. +sbotools bundles the required Perl module Sort::Versions with it. This +does not interfere with a copy installed from the CPAN, or from +slackbuilds.org. sbotools is written and maintained by d4wnr4z0r, xocel, and pink_mist; we can be contacted in #sbotools on freenode. diff --git a/system/sbotools/sbotools.SlackBuild b/system/sbotools/sbotools.SlackBuild index e09fd42338..35c7599d2f 100644 --- a/system/sbotools/sbotools.SlackBuild +++ b/system/sbotools/sbotools.SlackBuild @@ -1,17 +1,29 @@ -#!/bin/sh +#!/bin/bash # # Slackware build script for <sbotools> # Written by Jacob Pipkin <j@dawnrazor.net> # Licensed under the WTFPL <http://sam.zoy.org/wtfpl/COPYING> +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=sbotools VERSION=${VERSION:-2.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=$PRGNAM -CWD=$(pwd) +ARCH=noarch + +# 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} @@ -73,4 +85,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-noarch-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |