summaryrefslogtreecommitdiffstats
path: root/academic/aenig4
diff options
context:
space:
mode:
Diffstat (limited to 'academic/aenig4')
-rw-r--r--academic/aenig4/README6
-rw-r--r--academic/aenig4/aenig4.SlackBuild16
2 files changed, 16 insertions, 6 deletions
diff --git a/academic/aenig4/README b/academic/aenig4/README
index 3ac2263e9d..ee1505f360 100644
--- a/academic/aenig4/README
+++ b/academic/aenig4/README
@@ -1,5 +1,5 @@
aenig4 (Enigma M4 Cipher Machine Emulator)
-aenig4 emulates the Enigma M4 cipher machine used by the U-boot divsion of
-the German Navy during World War II. It can be used as well to emulate the
-Enigma I machine (M1, M2, M3).
+aenig4 emulates the Enigma M4 cipher machine used by the U-boot
+divsion of the German Navy during World War II. It can be used as well
+to emulate the Enigma I machine (M1, M2, M3).
diff --git a/academic/aenig4/aenig4.SlackBuild b/academic/aenig4/aenig4.SlackBuild
index 2a7705b76f..8e66aab54d 100644
--- a/academic/aenig4/aenig4.SlackBuild
+++ b/academic/aenig4/aenig4.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for aenig4
@@ -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=aenig4
VERSION=${VERSION:-1.04}
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}
@@ -98,4 +108,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