Replace `pkg` with `name`, which is canonical.