# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        neurobin shc 3.9.6

categories          devel
platforms           darwin
license             GPL-3
maintainers         {khindenburg @kurthindenburg} openmaintainer

description         Shell Script Compiler
long_description    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. \
    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.

checksums           rmd160  c3f552ed82f50e2f1878e458b406285bf4181221 \
                    sha256  32de7d4f8c1bd4605afd14ac5767323fd89a533c98c48ea660791520887322f2

# Do not grab alpha releases
livecheck.regex     (\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)${extract.suffix}