diff options
Diffstat (limited to 'system/jsawk/jsawk.SlackBuild')
-rw-r--r-- | system/jsawk/jsawk.SlackBuild | 8 |
1 files changed, 6 insertions, 2 deletions
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 |