summaryrefslogtreecommitdiffstats
path: root/system/aha/aha.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/aha/aha.SlackBuild')
-rw-r--r--system/aha/aha.SlackBuild18
1 files changed, 13 insertions, 5 deletions
diff --git a/system/aha/aha.SlackBuild b/system/aha/aha.SlackBuild
index 3650feb9c5..4adcdcae1d 100644
--- a/system/aha/aha.SlackBuild
+++ b/system/aha/aha.SlackBuild
@@ -1,21 +1,25 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for aha
-# 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.
+# 20200927 bkw: update for 0.5.1
# 20181201 bkw: update for 0.5
# 20170328 bkw: update for 0.4.10.6, use 'make install' instead of manually
# 20170301 bkw: update for 0.4.10.5, use long-form github URL
# 20170122 bkw: update for 0.4.10.3
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=aha
-VERSION=${VERSION:-0.5}
+VERSION=${VERSION:-0.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -25,7 +29,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 +76,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