2020-05-24 10:11:50 +00:00
|
|
|
# Maintainer: m0rf30 <morf3089@gmail.com>
|
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-xiaomi-vince
|
2022-07-24 11:37:09 +00:00
|
|
|
pkgdesc="Xiaomi Redmi 5 Plus"
|
2023-04-22 14:12:17 +00:00
|
|
|
pkgver=6
|
|
|
|
pkgrel=0
|
2020-05-24 10:11:50 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2023-04-22 14:12:17 +00:00
|
|
|
depends="
|
|
|
|
linux-postmarketos-qcom-msm8953
|
|
|
|
lk2nd-msm8953
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
"
|
2020-05-24 10:11:50 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2022-07-24 11:37:09 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-modem
|
2023-04-22 14:12:17 +00:00
|
|
|
"
|
2022-07-24 11:37:09 +00:00
|
|
|
source="
|
|
|
|
30-gpu-firmware.files
|
|
|
|
deviceinfo
|
2020-05-24 10:11:50 +00:00
|
|
|
fb.modes
|
2022-07-24 11:37:09 +00:00
|
|
|
pointercal
|
2023-04-22 14:12:17 +00:00
|
|
|
"
|
2020-05-24 10:11:50 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2022-12-23 13:42:37 +00:00
|
|
|
install -Dm644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes
|
|
|
|
install -Dm644 "$srcdir"/pointercal "$pkgdir"/etc/pointercal
|
2023-02-18 23:28:42 +00:00
|
|
|
install -Dm644 "$srcdir"/30-gpu-firmware.files "$pkgdir"/usr/share/mkinitfs/files/30-gpu-firmware.files
|
2020-05-24 10:11:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wi-Fi, ADSP Firmware"
|
2022-07-24 11:37:09 +00:00
|
|
|
depends="firmware-xiaomi-vince"
|
2020-05-24 10:11:50 +00:00
|
|
|
mkdir "$subpkgdir"
|
2021-12-02 18:16:06 +00:00
|
|
|
}
|
2020-05-24 10:11:50 +00:00
|
|
|
|
2022-07-24 11:37:09 +00:00
|
|
|
modem() {
|
|
|
|
depends="qrtr rmtfs rmtfs-openrc msm-modem-uim-selection"
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel $pkgname-nonfree-firmware"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
2022-07-24 11:37:09 +00:00
|
|
|
0e8ee21fb65fa2d2f6b27e8d8e18ac8d0347d134002de3bd2fc8262b255edc55f3e2f976daf0a362f418e9213962616fecb90b40576effd1d5d5d09d2a45564d 30-gpu-firmware.files
|
2023-04-22 14:12:17 +00:00
|
|
|
8b46e915d545defa1ed109f0ca6bdeee595225a30d9b009e3703e4726508cbc175231a7f36dfcd8c88d830c7ad6dd30a90248bcc3c1a1920f54cf23e9ab7eec2 deviceinfo
|
2020-05-24 10:11:50 +00:00
|
|
|
9b888f3a4ef3ed3c0b2e9c6a6e8a6c686909c530c3d95be797b47b4eb9deb55d64190b7a3736e44139630bfff5e295625a855052923369fdd37889060a3220ca fb.modes
|
2022-07-24 11:37:09 +00:00
|
|
|
4fa63c184f00033fbae2e4b140c9655061b3b662e337f7bdf5f8e26f7b57d6c66ad01fc93da05ce7d330f0f05bb0d36cc9b356ebfc7eb4200be4d4cc03afc975 pointercal
|
2021-09-18 17:06:03 +00:00
|
|
|
"
|