system/mksh: Updated for version R59.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Markus Reichelt 2020-05-09 13:21:13 +01:00 committed by Willy Sudiarto Raharjo
parent 8f707998e6
commit b94b29ab1b
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
3 changed files with 17 additions and 9 deletions

View File

@ -5,3 +5,6 @@ Pass STATIC=yes to the script to create a static build.
Pass DIET=yes to the script in order to use dietlibc (this
requires the optional dependency dietlibc)
Pass MUSL=yes to the script in order to use musl (this
requires the optional dependency musl)

View File

@ -2,7 +2,7 @@
# Slackware build script for mksh
# Copyright (c) 2011-2019 Markus Reichelt, Aachen, DE
# Copyright (c) 2011-2020 Markus Reichelt, Aachen, DE
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@ -26,7 +26,7 @@
# Markus Reichelt, slackbuilds@mareichelt.de, 0xCCEEF115
PRGNAM=mksh
VERSION=${VERSION:-R57}
VERSION=${VERSION:-R59}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -66,6 +66,9 @@ rm -rf $PRGNAM
tar xf $CWD/$PRGNAM-$VERSION.tgz
cd $PRGNAM
CC="gcc"
SLKCFLAGS="${SLKCFLAGS} -Wall"
if [ "$STATIC" = "yes" ]; then
LDFLAGS="${LDFLAGS} -static"
CPPFLAGS="${CPPFLAGS} -DMKSH_NOPWNAM"
@ -73,9 +76,10 @@ fi
if [ "$DIET" = "yes" ]; then
CC="diet -Os gcc"
SLKCFLAGS="${SLKCFLAGS} -Wall"
else
CC="gcc"
fi
if [ "$MUSL" = "yes" ]; then
CC="musl-gcc"
fi
chown -R root:root .
@ -92,7 +96,8 @@ LDFLAGS=$LDFLAGS \
CPPFLAGS=$CPPFLAGS \
CFLAGS=$SLKCFLAGS \
CC=$CC \
sh ../Build.sh -r -c lto
sh ../Build.sh -r
./test.sh
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/usr/man/man1 $PKG/install

View File

@ -1,8 +1,8 @@
PRGNAM="mksh"
VERSION="R57"
VERSION="R59"
HOMEPAGE="http://mirbsd.de/mksh"
DOWNLOAD="http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R57.tgz"
MD5SUM="4d2686535252ea6a57bdec531498239a"
DOWNLOAD="http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R59.tgz"
MD5SUM="995ddf33b4b52d48bb9a648ce996f791"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""