|
This fixes a number of oversights and (in my opinion) makes it a lot
easier to maintain because of simpler scripting (more advanced use of
shell function for less copied code, etc.).
* Fix completely missing dependencies, both build time and run time.
Build time needs all Lua targets, run time needs only matching Lua
versions.
* Use `luarocks` argument to avoid root manifests rather than removing
them after the fact.
* Do not repeat code, use re-usable functions (following Arch packaging
convention for private namespace)
* Don't bother with unnecessary code like testing for a file, removing
it, then linking it when a force copy will do (a force link would
work, but could cause problems later if we ever have to introduce
patches).
* Use `shellharden` to confirm and normalize shell quoting issues. Not
always my favorite style but at least its consistent.
|