summaryrefslogtreecommitdiffstats
path: root/network/nmh
diff options
context:
space:
mode:
Diffstat (limited to 'network/nmh')
-rw-r--r--network/nmh/nmh.SlackBuild18
-rw-r--r--network/nmh/nmh.info6
2 files changed, 17 insertions, 7 deletions
diff --git a/network/nmh/nmh.SlackBuild b/network/nmh/nmh.SlackBuild
index d8dd4250ae..6d5abd51a0 100644
--- a/network/nmh/nmh.SlackBuild
+++ b/network/nmh/nmh.SlackBuild
@@ -1,14 +1,17 @@
-#!/bin/sh
+#!/bin/bash
# SlackBuild for New MH System (nmh)
# Joel J. Adamson <adamsonj@email.unc.edu>
#
# Updated for 1.6 by Leonard Schmidt <lems@gmx.net>
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=nmh
-VERSION=${VERSION:-1.7.1}
+VERSION=${VERSION:-1.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -18,7 +21,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}
@@ -93,4 +103,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
)
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
diff --git a/network/nmh/nmh.info b/network/nmh/nmh.info
index f04d375ac6..f90a2634f3 100644
--- a/network/nmh/nmh.info
+++ b/network/nmh/nmh.info
@@ -1,8 +1,8 @@
PRGNAM="nmh"
-VERSION="1.7.1"
+VERSION="1.8"
HOMEPAGE="https://www.nongnu.org/nmh/"
-DOWNLOAD="https://download.savannah.nongnu.org/releases/nmh/nmh-1.7.1.tar.gz"
-MD5SUM="0f2e117eb3acbe949af43b5048de28c5"
+DOWNLOAD="https://download.savannah.nongnu.org/releases/nmh/nmh-1.8.tar.gz"
+MD5SUM="a9bb7636cd8a75c522a48f5d942314fb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""