In /usr/bin/pkgkde-vcs line 36:
    local vcs
    ^-------^ SC2039: In POSIX sh, 'local' is undefined.


In /usr/bin/pkgkde-vcs line 37:
    vcs="`basename "$0"`"
         ^-------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.

Did you mean: 
    vcs="$(basename "$0")"


In /usr/bin/pkgkde-vcs line 64:
    local libdir
    ^----------^ SC2039: In POSIX sh, 'local' is undefined.


In /usr/bin/pkgkde-vcs line 65:
    libdir=`dirname $0 2>/dev/null`
           ^----------------------^ SC2006: Use $(...) notation instead of legacy backticked `...`.
                    ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
    libdir=$(dirname "$0" 2>/dev/null)


In /usr/bin/pkgkde-vcs line 82:
    local ans exitval
    ^---------------^ SC2039: In POSIX sh, 'local' is undefined.


In /usr/bin/pkgkde-vcs line 87:
        echo -n "Run the command above and all others? (p = prompt next time) [Y/n/p]: "
             ^-- SC2039: In POSIX sh, echo flags are undefined.


In /usr/bin/pkgkde-vcs line 89:
            read ans
            ^--^ SC2162: read without -r will mangle backslashes.


In /usr/bin/pkgkde-vcs line 99:
                echo -n "Enter Y (default) or N: "
                     ^-- SC2039: In POSIX sh, echo flags are undefined.


In /usr/bin/pkgkde-vcs line 128:
    local rootdir _pchangelog
    ^-----------------------^ SC2039: In POSIX sh, 'local' is undefined.


In /usr/bin/pkgkde-vcs line 137:
        DEB_SOURCE="$(echo "$_pchangelog" | _get_deb_field 'Source')"
        ^--------^ SC2034: DEB_SOURCE appears unused. Verify use (or export if used externally).


In /usr/bin/pkgkde-vcs line 139:
        DEB_URGENCY="$(echo "$_pchangelog" | _get_deb_field 'Urgency')"
        ^---------^ SC2034: DEB_URGENCY appears unused. Verify use (or export if used externally).


In /usr/bin/pkgkde-vcs line 152:
    local distro
    ^----------^ SC2039: In POSIX sh, 'local' is undefined.


In /usr/bin/pkgkde-vcs line 154:
    if [ "$(expr match "$distro" '^\(\(wheezy\|jessie\|stretch\|buster\|bullseye\|bookworm\)\(-security\|-backports\|-backports-sloppy\)\?\)$')" = "$distro" ]; then
            ^--^ SC2003: expr is antiquated. Consider rewriting this using $((..)), ${} or [[ ]].


In /usr/bin/pkgkde-vcs line 156:
    elif [ "$(expr match "$distro" '^\(testing\(-proposed-updates\)\?\|unstable\|experimental\)$')" = "$distro" ]; then
              ^--^ SC2003: expr is antiquated. Consider rewriting this using $((..)), ${} or [[ ]].


In /usr/bin/pkgkde-vcs line 163:
    local name
    ^--------^ SC2039: In POSIX sh, 'local' is undefined.


In /usr/bin/pkgkde-vcs line 167:
            ?)  if [ -n "$OPTARG" ]; then OPTIND=$(($OPTIND-1)); fi; break;;
            ^-- SC2221: This pattern always overrides a later one on line 168.
                                                    ^-----^ SC2004: $/${} is unnecessary on arithmetic variables.


In /usr/bin/pkgkde-vcs line 168:
            :)  die "$OPTARG option is missing a required argument" ;;
            ^-- SC2222: This pattern never matches because of a previous pattern on line 167.


In /usr/bin/pkgkde-vcs line 172:
        echo "$(($OPTIND-1))"
                 ^-----^ SC2004: $/${} is unnecessary on arithmetic variables.


In /usr/bin/pkgkde-vcs line 187:
        ?)  if [ -n "$OPTARG" ]; then OPTIND=$(($OPTIND-1)); fi; break;;
        ^-- SC2221: This pattern always overrides a later one on line 188.
                                                ^-----^ SC2004: $/${} is unnecessary on arithmetic variables.


In /usr/bin/pkgkde-vcs line 188:
        :)  die "$OPTARG option is missing a required argument" ;;
        ^-- SC2222: This pattern never matches because of a previous pattern on line 187.


In /usr/bin/pkgkde-vcs line 193:
    shift "$(($OPTIND-1))"
              ^-----^ SC2004: $/${} is unnecessary on arithmetic variables.


In /usr/bin/pkgkde-vcs line 206:
        if LIBDIR=$(determine_libdir) && [ $? -eq 0 ]; then
                                           ^-- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.


In /usr/bin/pkgkde-vcs line 208:
                . "$LIBDIR/$VCS.sh"
                  ^---------------^ SC1090: Can't follow non-constant source. Use a directive to specify location.

For more information:
  https://www.shellcheck.net/wiki/SC1090 -- Can't follow non-constant source....
  https://www.shellcheck.net/wiki/SC2034 -- DEB_SOURCE appears unused. Verify...
  https://www.shellcheck.net/wiki/SC2039 -- In POSIX sh, 'local' is undefined.