summaryrefslogtreecommitdiffstats
path: root/development/shc
diff options
context:
space:
mode:
Diffstat (limited to 'development/shc')
-rw-r--r--development/shc/README25
-rw-r--r--development/shc/shc.SlackBuild20
-rw-r--r--development/shc/shc.info6
3 files changed, 31 insertions, 20 deletions
diff --git a/development/shc/README b/development/shc/README
index 560ad6f8c8..cfc1c6af02 100644
--- a/development/shc/README
+++ b/development/shc/README
@@ -1,16 +1,17 @@
shc - Shell script compiler
-SHC is a generic shell script compiler. It takes a script, which is
-specified on the command line and produces C source code. The generated
-source code is then compiled and linked to produce a stripped binary.
+SHC is a generic shell script compiler. It takes a script, which
+is specified on the command line and produces C source code. The
+generated source code is then compiled and linked to produce a
+stripped binary.
-The compiled binary will still be dependent on the shell specified in
-the first line of the shell code (i.e shebang: #!/bin/sh or such), thus
-shc does not create completely independent binaries.
+The compiled binary will still be dependent on the shell specified
+in the first line of the shell code (i.e shebang: #!/bin/sh or such),
+thus shc does not create completely independent binaries.
-shc itself is not a compiler such as cc, it rather encodes and encrypts
-a shell script and generates C source code with the added expiration
-capability. It then uses the system compiler to compile a stripped
-binary which behaves exactly like the original script. Upon execution,
-the compiled binary will decrypt and execute the code with the shells'
--c option.
+shc itself is not a compiler such as cc, it rather encodes and
+encrypts a shell script and generates C source code with the added
+expiration capability. It then uses the system compiler to compile a
+stripped binary which behaves exactly like the original script. Upon
+execution, the compiled binary will decrypt and execute the code with
+the shell's -c option.
diff --git a/development/shc/shc.SlackBuild b/development/shc/shc.SlackBuild
index d3d52deceb..f14c4f69d9 100644
--- a/development/shc/shc.SlackBuild
+++ b/development/shc/shc.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for shc
# Previously maintained by Roberto Metere <roberto <at> metere <dot> it>
-# Copyright 2017 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
+# Copyright 2017-2021 Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +23,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=shc
-VERSION=${VERSION:-3.9.6}
+VERSION=${VERSION:-4.0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,7 +39,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+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}
@@ -98,4 +108,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
diff --git a/development/shc/shc.info b/development/shc/shc.info
index 5af3ba09dd..8a659dd4a8 100644
--- a/development/shc/shc.info
+++ b/development/shc/shc.info
@@ -1,8 +1,8 @@
PRGNAM="shc"
-VERSION="3.9.6"
+VERSION="4.0.3"
HOMEPAGE="http://neurobin.github.io/shc"
-DOWNLOAD="https://github.com/neurobin/shc/archive/3.9.6/shc-3.9.6.tar.gz"
-MD5SUM="da777637594be58caf33509d2ca0fbea"
+DOWNLOAD="https://github.com/neurobin/shc/archive/refs/tags/4.0.3/shc-4.0.3.tar.gz"
+MD5SUM="c3f7aef42f12bccd0a54db92e3946f4e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""