Non-versioned provides with a provider priority as used before this commit are only useful for virtual packages. That is, packages which can be installed concurrently to each other. Therefore, having non-version provider signals that the forked package is intended to be allowed to be installed alongside the main package. Not only this is not the case (we don't wanted forked alsa-ucm-conf and the upstream one installed together), but in addition, doing so is impossible. That is because the main alsa-ucm-conf package provides by default a versioned provider of itself, making the concurrent installation not allowed. Therefore, using non-versioned provides, although harmless in practice, represents a packaging bug that makes understaning and reasoning about the fork harder. Instead of doing that, make the providers versioned, and remove the provider_priority. Now, it is clear that the forked alsa-ucm-conf packages must replace the upstream one. To avoid installations that do not need a forked alsa-ucm-conf, we must make sure that the version which the forked packages provide is lower than the version of the upstream package. We do so by prepending a 0. to the version, and adding an explanatory comment. Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9397>
23 lines
909 B
Bash
23 lines
909 B
Bash
maintainer="Richard Acayan <mailingradian@gmail.com>"
|
|
pkgname=alsa-ucm-conf-qcom-sdm670
|
|
pkgver=1.2.9_git20260610
|
|
pkgrel=1
|
|
pkgdesc="ALSA UCM configuration for SDM670 devices"
|
|
url="https://gitlab.com/sdm670-mainline/alsa-ucm-conf"
|
|
arch="aarch64"
|
|
license="BSD-3-Clause"
|
|
provides="alsa-ucm-conf=0.${pkgver%_*}-r$pkgrel" # versioned provides need to be below default version
|
|
_commit="1e39c9fce12cb521bb53a6422532822b2e4faa10"
|
|
source="https://gitlab.com/sdm670-mainline/alsa-ucm-conf/-/archive/$_commit/alsa-ucm-conf-$_commit.tar.gz"
|
|
options="!check"
|
|
|
|
package() {
|
|
# install audio config files
|
|
mkdir -p "$pkgdir"/usr/share/alsa/ucm2
|
|
cp -r "$srcdir/alsa-ucm-conf-$_commit"/ucm2 "$pkgdir"/usr/share/alsa/
|
|
}
|
|
|
|
sha512sums="
|
|
a1362468f58bed88b5e82e5f13053451e8887e8d2eace1a3d1d5db0d7f0fbdf57925a6902cf705e350397c0cd8d5c6b214afffb510962bc9e3f624ac14119b56 alsa-ucm-conf-1e39c9fce12cb521bb53a6422532822b2e4faa10.tar.gz
|
|
"
|