-ssrc input plugin

It extracts package information from the first given input file. It looks for a top-level comment block with key: value fields. It's language-agnostic and understands coherent # lines or // comments and multiline /*...*/ blocks.

For FPM/XPM the inset script basename also becomes the package name in absence of an id: field.

The remainder of the comment (after the meta fields) will substitute as long --description field.

So basically this scheme provides a file-embedded .fpm option and --inputs specification scheme; with just more generalized field names.

It could also be utilized for packaging binary apps. Simply craft a spec.txt file with # comment markers and key:value fields. The spec file can exclude itself with # pack: spec.txt=, bin/* for example.

With --src-only recursive pack: line lookups are disabled. Only the pack: list from the primary input file is acted on then.