summaryrefslogtreecommitdiffstats
path: root/system/kfc/kfc.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/kfc/kfc.SlackBuild')
-rw-r--r--system/kfc/kfc.SlackBuild19
1 files changed, 14 insertions, 5 deletions
diff --git a/system/kfc/kfc.SlackBuild b/system/kfc/kfc.SlackBuild
index 29eb4f508f..1c148feb56 100644
--- a/system/kfc/kfc.SlackBuild
+++ b/system/kfc/kfc.SlackBuild
@@ -1,15 +1,20 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for kfc
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20230711 bkw: updated for v0.1.4.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=kfc
-VERSION=${VERSION:-0.1.2}
+VERSION=${VERSION:-0.1.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -19,7 +24,11 @@ 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}
@@ -68,4 +77,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