opam: adhere to zsh naming convention

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
opam: capture required libs as resources

Closes #26066.
Closes #29508.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>