diff options
Diffstat (limited to 'system/pbzip2')
-rw-r--r-- | system/pbzip2/README | 8 | ||||
-rw-r--r-- | system/pbzip2/pbzip2.SlackBuild | 16 |
2 files changed, 17 insertions, 7 deletions
diff --git a/system/pbzip2/README b/system/pbzip2/README index 2f2fc0919f..90c2e8c770 100644 --- a/system/pbzip2/README +++ b/system/pbzip2/README @@ -1,5 +1,5 @@ PBZIP2 is a parallel implementation of the bzip2 block-sorting file -compressor that uses pthreads and achieves near-linear speedup on SMP -machines. The output of this version is fully compatible with bzip2 v1.0.2 -or newer (ie: anything compressed with pbzip2 can be decompressed with -bzip2). +compressor that uses pthreads and achieves near-linear speedup on +SMP machines. The output of this version is fully compatible with +bzip2 v1.0.2 or newer (ie: anything compressed with pbzip2 can be +decompressed with bzip2). diff --git a/system/pbzip2/pbzip2.SlackBuild b/system/pbzip2/pbzip2.SlackBuild index 79fb06c882..ac3b6a5a17 100644 --- a/system/pbzip2/pbzip2.SlackBuild +++ b/system/pbzip2/pbzip2.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for PBZIP2 @@ -22,10 +22,13 @@ # 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=pbzip2 VERSION=${VERSION:-1.1.13} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,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} @@ -86,4 +96,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 |