Priority for directory permissions
Currently, apk uses a specific algorithm to combine the directory mode and owner information from all installed packages. In some cases, rendering the desired permissions in the file system requires adjusting the APKBUILD file of all packages containing the directory.
The suggested solution is to allow setting a directory permission priority on per package basis. This attribute would control which package takes precedence in determining the permissions, similar to how ‘replaces_priority’ affects file permissions and content. If the highest priority would be claimed by multiple packages, apk would revert to the current behavior, taking only the highest-priority packages into account.
(from redmine: issue id 5073, created on 2016-02-04)