temp/mesa-git: list relevant subpackages as depends for -dri- package (!896)

At the moment, every device that wants to make use of mesa-git needs
to depend on all relevant mesa-git subpackages.

We can simplify this by adding these directly as depends for the
-dri- package that most devices will be depending on. That way,
the fact that you need to depend on all relevant subpackages is
mostly hidden away as "implementation detail" in the mesa-git
package, and no special care is required when using mesa-git.
This commit is contained in:
Minecrell 2020-01-19 13:14:14 +01:00 committed by Martijn Braam
parent 1943ead268
commit aa353fab03
No known key found for this signature in database
GPG key ID: C4280ACB000B060F

View file

@ -3,10 +3,6 @@
#
# Any new drivers should be upstreamed to Alpine Linux once they appear in a
# new Mesa stable release
#
# Any device that wants to use this should explicitely depend on the entirety
# of this aport, so mesa-git including _all_ of the subpackages, to not cause
# conflicts
pkgname=mesa-git
pkgver=0_git20200116
pkgrel=1
@ -271,7 +267,9 @@ _mv_vulkan() {
_dri() {
local n=${subpkgname##*-dri-}
pkgdesc="Mesa $n DRI drivers (Git)"
depends="$pkgname"
# List all relevant subpackages to avoid conflicts with main mesa package.
depends="$pkgname $pkgname-gl $pkgname-glapi $pkgname-gles $pkgname-egl $pkgname-gbm"
provides="mesa-dri-$n"
replaces="mesa-dri-$n"