From 4e9d02517390df440e7fc44bc4efac4107c488b5 Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Sat, 24 Nov 2018 16:31:45 +1300 Subject: system/jsawk: Support for Slackware current. Signed-off-by: Andrew Clemons --- system/jsawk/jsawk.SlackBuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'system') diff --git a/system/jsawk/jsawk.SlackBuild b/system/jsawk/jsawk.SlackBuild index 0e6dfa77d2..f08ddfd142 100644 --- a/system/jsawk/jsawk.SlackBuild +++ b/system/jsawk/jsawk.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for jsawk -# Copyright 2013,2016 Andrew Clemons, Wellington, New Zealand +# Copyright 2013,2016,2018 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:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} ARCH=noarch @@ -47,6 +47,10 @@ cp $CWD/jsawk $PKG/usr/bin chmod 0755 $PKG/usr/bin/jsawk chown root:root $PKG/usr/bin/jsawk +if command -v js52 > /dev/null 2>&1 ; then + sed -i '/JSBIN=/s/-js/-js52/' $PKG/usr/bin/jsawk +fi + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3