# Maintainer: m0rf30 # Reference: pkgname=device-xiaomi-vince pkgdesc="Xiaomi Redmi 5 Plus" pkgver=8 pkgrel=1 url="https://postmarketos.org" license="MIT" arch="aarch64" options="!check !archcheck" depends=" linux-postmarketos-qcom-msm8953 lk2nd-msm8953 mkbootimg postmarketos-base soc-qcom-msm8916 " makedepends="devicepkg-dev" subpackages=" $pkgname-nonfree-firmware:nonfree_firmware $pkgname-modem " source=" 30-gpu-firmware.files deviceinfo modules-initfs fb.modes pointercal ucm2/xiaomi-vince.conf ucm2/HiFi.conf " build() { devicepkg_build $startdir $pkgname } package() { devicepkg_package $startdir $pkgname install -Dm644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes install -Dm644 "$srcdir"/pointercal "$pkgdir"/etc/pointercal install -Dm644 "$srcdir"/30-gpu-firmware.files "$pkgdir"/usr/share/mkinitfs/files/30-gpu-firmware.files # Alsa usecase manager config install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/xiaomi-vince \ "$srcdir"/xiaomi-vince.conf \ "$srcdir"/HiFi.conf } nonfree_firmware() { pkgdesc="Wi-Fi, ADSP Firmware" depends="firmware-xiaomi-vince" mkdir "$subpkgdir" } modem() { depends="qrtr rmtfs rmtfs-openrc msm-modem-uim-selection" install_if="$pkgname=$pkgver-r$pkgrel $pkgname-nonfree-firmware" mkdir "$subpkgdir" } sha512sums=" 0e8ee21fb65fa2d2f6b27e8d8e18ac8d0347d134002de3bd2fc8262b255edc55f3e2f976daf0a362f418e9213962616fecb90b40576effd1d5d5d09d2a45564d 30-gpu-firmware.files 0dd56d5303324daa04477a788ed3cc44eb3d32afccde11e94153715204a7f80ee9fe90970dcf256a4d7999541c27bc4c8b3ab1a5ad6c70dd88eadfe478a5399b deviceinfo 68a077d9dce986dd82d4f875a83a0a26a9b0d274d9576d7632378241bf2b0373a8ef897b210d05e5227910d3e56ca1e7f179f08b35ff5b33229d455915932635 modules-initfs 9b888f3a4ef3ed3c0b2e9c6a6e8a6c686909c530c3d95be797b47b4eb9deb55d64190b7a3736e44139630bfff5e295625a855052923369fdd37889060a3220ca fb.modes 4fa63c184f00033fbae2e4b140c9655061b3b662e337f7bdf5f8e26f7b57d6c66ad01fc93da05ce7d330f0f05bb0d36cc9b356ebfc7eb4200be4d4cc03afc975 pointercal 09077bd18de123008a0e13c6c45c3690d3a79b9c5da6f7045af9c7aefa5002883c6fe6ea7c813a0f58766ca2e48b9a340edb74bc02cdb1896fdd2e5484e9b21d xiaomi-vince.conf fb8b369272e88206fdc71f169930c39d732e7df841ae10de8b708f04ee772f8cb9c9e7e9de9a3eb09abe6007f85c86197cb723fac43971df0535fe24d66d3fce HiFi.conf "