Changed the build method by using Golang's module support and creating a module from the upstream sources. Fixes the current build errors due to a transitive depedency which requires upgrading Go to 1.17+.
This simplifies applying the patch and rolling back (downgrading) the TGDB module dependency. As a bonus, we can use the normal way of retrieving the sources and generating the scriptmodule `.pkg` info file.
Fixed also the `golang` installation, the new version was not installed automatically due to a insufficient version check.
this allows switching dependencies between binary/source installs and removal if needed - useful in some cases,
as it's possible if our server was offline for a source install to be used, which with the new packaging will be
rememebered - so this allows switching back to binary.
added golang / mesa-drm omxiv / sdl1 and sdl2 to depends section
* change existing calls which used --strip-components
* use multiple parameters for arguments which should allow additional arguments with spaces
* implements #2630
* replace many of the existing wget | tar commands with the new function
* include error logging in the function via runCmd, to trap download/unpacking issues
* use noinstclean flag so golang isn't reinstalled if not needed
* remove from optional packages and make it hidden (as it's a dependency only)
* quieten wget output
* no need to check for folder before removing