1
0
Fork 0
mirror of https://gitlab.postmarketos.org/postmarketOS/pmaports.git synced 2025-07-13 00:29:49 +03:00

device-realme-x3: add nonfree-fw-openrc subpkg

This should make it possible to build systemd images for this device. I
don't know if anyone cares, but I couldn't look away when I found this
until I fixed it :D

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6476
This commit is contained in:
Clayton Craft 2025-05-05 15:22:18 -07:00 committed by Pablo Correa Gómez
parent 469374de6d
commit a308720ea9
No known key found for this signature in database
GPG key ID: 7A342565FF635F79
2 changed files with 14 additions and 5 deletions

View file

@ -4,7 +4,7 @@
pkgname=device-realme-x3 pkgname=device-realme-x3
pkgdesc="Realme X3" pkgdesc="Realme X3"
pkgver=1 pkgver=1
pkgrel=0 pkgrel=1
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="aarch64" arch="aarch64"
@ -28,6 +28,7 @@ source="
subpackages=" subpackages="
$pkgname-nonfree-firmware:nonfree_firmware $pkgname-nonfree-firmware:nonfree_firmware
$pkgname-nonfree-firmware-openrc:nonfree_firmware_openrc
$pkgname-alsa_ucm_conf $pkgname-alsa_ucm_conf
$pkgname-wireplumber $pkgname-wireplumber
" "
@ -46,19 +47,27 @@ nonfree_firmware() {
firmware-realme-x3 firmware-realme-x3
msm-modem msm-modem
pd-mapper pd-mapper
pd-mapper-openrc
tqftpserv tqftpserv
tqftpserv-openrc
bootmac bootmac
alsa-utils alsa-utils
" "
install="$subpkgname.post-install"
mkdir "$subpkgdir"
install -Dm644 "$srcdir/30-gpu-firmware.files" \ install -Dm644 "$srcdir/30-gpu-firmware.files" \
"$subpkgdir/usr/share/mkinitfs/files/30-gpu-firmware.files" "$subpkgdir/usr/share/mkinitfs/files/30-gpu-firmware.files"
} }
nonfree_firmware_openrc() {
install_if="$pkgname-nonfree-firmware=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install"
depends="
openrc
pd-mapper-openrc
tqftpserv-openrc
"
mkdir -p "$subpkgdir"
}
alsa_ucm_conf() { alsa_ucm_conf() {
install -Dm644 "$srcdir/HiFi.conf" \ install -Dm644 "$srcdir/HiFi.conf" \
"$subpkgdir/usr/share/alsa/ucm2/Realme/x3/HiFi.conf" "$subpkgdir/usr/share/alsa/ucm2/Realme/x3/HiFi.conf"