main/mesa: consolidate subpackages
Mesa uses so-called "megadrivers" to link multiple drivers into one shared library. Essentially there are only 4 distinct shared libraries built: - libmesa_dri_drivers.so ("classic" DRI drivers) - libgallium_dri.so (Gallium DRI drivers) - libgallium_drv_video.so (Gallium VAAPI drivers) - libvdpau_gallium.so.1.0.0 (Gallium VDPAU drivers) - (Note: Vulkan drivers are all built separately) These shared libraries are then hard-linked for each driver (i965, radeon, freedreno, ...). The APKBUILD attempts to create minimal packages by splitting the drivers into separate subpackages. Unfortunately this has exactly the opposite effect in this case. Instead of preserving the hard links with one large Mesa package, we copy the same shared library over and over again into separate subpackages. This causes significant overhead for storing all the apk packages, but also when installing multiple drivers on one system. The only useful separation we can make are the megadrivers themselves, i.e. one subpackage for each of the shared libraries mentioned above.
This repository contains the APKBUILD files for each and every Alpine Linux package, along with the required patches and scripts, if any.
It also contains some extra files and directories related to testing (and therefore, building) those packages on GitLab (via GitLab CI) and GitHub (via Travis and Drone.io).
If you want to contribute, please read the contributor guide and feel free to either submit a git patch on the Alpine aports mailing list (email@example.com), or to submit a merge request on GitLab.
You can find some useful git hooks in the
To use them, run the following command after cloning this repository:
git config --local core.hooksPath .githooks