system/jsawk: Support mozjs68 from -current.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
This commit is contained in:
Andrew Clemons 2020-08-08 09:09:56 +12:00
parent 6f3d57cd64
commit 1178225bb5

View file

@ -2,7 +2,7 @@
# Slackware build script for jsawk
# Copyright 2013,2016,2018-2019 Andrew Clemons, Wellington, New Zealand
# Copyright 2013,2016,2018-2020 Andrew Clemons, Wellington, New Zealand
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,7 +25,7 @@
PRGNAM=jsawk
VERSION=${VERSION:-1.4}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
ARCH=noarch
@ -47,8 +47,8 @@ cp $CWD/jsawk $PKG/usr/bin
chmod 0755 $PKG/usr/bin/jsawk
chown root:root $PKG/usr/bin/jsawk
if command -v js60 > /dev/null 2>&1 ; then
sed -i '/JSBIN=/s/-js/-js60/' $PKG/usr/bin/jsawk
if command -v js68 > /dev/null 2>&1 ; then
sed -i '/JSBIN=/s/-js/-js68/' $PKG/usr/bin/jsawk
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION