diff options
Diffstat (limited to 'pkgtools-go/pkgtools-go.SlackBuild')
-rw-r--r--[-rwxr-xr-x] | pkgtools-go/pkgtools-go.SlackBuild | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/pkgtools-go/pkgtools-go.SlackBuild b/pkgtools-go/pkgtools-go.SlackBuild index 52bac4f..3d3dc2b 100755..100644 --- a/pkgtools-go/pkgtools-go.SlackBuild +++ b/pkgtools-go/pkgtools-go.SlackBuild @@ -1,11 +1,12 @@ -#!/bin/sh +#!/bin/bash -# Slackware build script for pkgtools +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pkgtools-go VERSION=${VERSION:-0.0.5} BUILD=${BUILD:-1} TAG=${TAG:-_slackcoder} +PKGTYPE=${PKGTYPE:-txz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -15,21 +16,15 @@ if [ -z "$ARCH" ]; then esac fi -CWD="$(pwd)" +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" = "i586" ]; then - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - LIBDIRSUFFIX="64" -else - LIBDIRSUFFIX="" -fi - set -e rm -rf "$PKG" @@ -64,5 +59,5 @@ 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:-txz}" +/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |