2023-09-10 17:13:44 +00:00
|
|
|
# Maintainer: Victor Pavlov (vipaoL) <vipaolmail@gmail.com>
|
2023-02-25 10:18:24 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-xiaomi-markw
|
|
|
|
pkgdesc="Xiaomi Redmi 4 Prime"
|
2023-12-14 22:17:42 +00:00
|
|
|
pkgver=4
|
2024-01-21 22:56:08 +00:00
|
|
|
pkgrel=1
|
2023-02-25 10:18:24 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2023-09-05 19:00:29 +00:00
|
|
|
depends="
|
|
|
|
linux-postmarketos-qcom-msm8953
|
|
|
|
lk2nd-msm8953
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
soc-qcom-msm8953
|
|
|
|
"
|
2023-02-25 10:18:24 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2023-12-14 22:17:42 +00:00
|
|
|
source="deviceinfo modules-initfs modprobe.d_touchscreens-workaround.conf"
|
2023-02-25 10:18:24 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-12-14 22:17:42 +00:00
|
|
|
install -D -m644 "$srcdir"/modprobe.d_touchscreens-workaround.conf "$pkgdir"/etc/modprobe.d/touchscreens-workaround.conf
|
2023-02-25 10:18:24 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="WiFi, Bluetooth, Modem, Display and GPU Firmware"
|
2023-09-10 17:13:44 +00:00
|
|
|
depends="
|
|
|
|
firmware-xiaomi-markw
|
|
|
|
msm-firmware-loader
|
|
|
|
soc-qcom-msm8953-initramfs
|
|
|
|
soc-qcom-msm8953-modem
|
|
|
|
"
|
2023-02-25 10:18:24 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
2023-09-10 17:13:44 +00:00
|
|
|
|
2023-02-25 10:18:24 +00:00
|
|
|
sha512sums="
|
2023-08-02 17:06:01 +00:00
|
|
|
0d393f07e551058781a67c096b1ad7f252c78e801a2da8752f893f4ea7c24f7aa65bc69f9c80c7be53e615269a7028eb151e7bc3fe79f0c260a4d28e97f10e7d deviceinfo
|
2023-12-14 22:17:42 +00:00
|
|
|
00f2a07de0aaedd3f3fee4aed6e1f591539cb56aa109c49d5b0a5de11c7f8c5d0a3cef8111b855d064bfe38901f3bbcddd9cf2c65ae811578d43319137f586ac modules-initfs
|
|
|
|
b6d005ac8be56b6eca402869fcf33f671f02000fb927af36ae9a860817c92a17329323408e94f4593d63e9f6a95881e270bc9dcd930ad4cf8312e1ac85ab4a20 modprobe.d_touchscreens-workaround.conf
|
2023-02-25 10:18:24 +00:00
|
|
|
"
|