summaryrefslogtreecommitdiffstats
path: root/development/bmake/bmake.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/bmake/bmake.SlackBuild')
-rw-r--r--development/bmake/bmake.SlackBuild23
1 files changed, 17 insertions, 6 deletions
diff --git a/development/bmake/bmake.SlackBuild b/development/bmake/bmake.SlackBuild
index 8b393206ea..ddc09c7bab 100644
--- a/development/bmake/bmake.SlackBuild
+++ b/development/bmake/bmake.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for bmake
@@ -22,8 +22,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Now maintained by B. Watson <yalhcru@gmail.com>
+# Now maintained by B. Watson <urchlay@slackware.uk>
+# 20230108 bkw: update for 20220928
+# 20210829 bkw: update for 20210803
+# - there is a 20210808 release (5 days newer) but it fails its
+# own self-tests (specifically job-output-null).
# 20201106 bkw: update for 20201010
# 20200306 bkw: update for 20200212
# 20191211 bkw: update for 20181221
@@ -34,10 +38,13 @@
# give you a parallel build, but it does break the 'make test'
# portion of the bmake build.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=bmake
-VERSION=${VERSION:-20201010}
+VERSION=${VERSION:-20220928}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -47,7 +54,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}
@@ -103,7 +114,7 @@ CXXFLAGS="$SLKCFLAGS" \
# The usual MAKEFLAGS=-j8 or such, will break the build. bmake interprets
# MAKEFLAGS differently from GNU make. Plus, the main part of the build
# (actually compiling bmake) isn't done by make, so MAKEFLAGS would have
-# no effect. Also, the build interprets TAG as selecting a test scenario.
+# no effect. Also, the build interprets TAG as selecting a test scenario.
env \
-u MAKEFLAGS \
-u TAG \
@@ -132,4 +143,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