2022-07-26 05:11:04 +00:00
|
|
|
# Maintainer: Molly Sophia <mollysophia379@gmail.com>
|
|
|
|
|
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-xiaomi-polaris
|
|
|
|
pkgdesc="Xiaomi Mi Mix 2S"
|
2024-04-02 12:52:52 +00:00
|
|
|
pkgver=1
|
2024-06-18 19:53:59 +00:00
|
|
|
pkgrel=1
|
2022-07-26 05:11:04 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
|
|
|
linux-postmarketos-qcom-sdm845
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
soc-qcom-sdm845
|
|
|
|
soc-qcom-sdm845-ucm
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
source="
|
|
|
|
deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs
|
2022-07-26 05:11:04 +00:00
|
|
|
phoc.ini
|
|
|
|
"
|
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-phosh
|
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Modem, WiFi and GPU Firmware, also needed for osk-sdl"
|
2023-04-29 22:09:49 +00:00
|
|
|
depends="firmware-xiaomi-polaris firmware-xiaomi-polaris-initramfs
|
|
|
|
soc-qcom-sdm845-nonfree-firmware soc-qcom-sdm845-modem"
|
2022-07-26 05:11:04 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel phosh"
|
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2024-06-18 19:53:59 +00:00
|
|
|
1dc7d05cb7a1404c5e44a5b024889359a69477170017958e879a7c04d694757f49865a06e0ae989b1912b7d5e6b258a95e92ffa92ccfafd16527fe330631cb58 deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
c1efa00cbfae95c2b0713b4c481f27cba1424b3def1d10ca682424a945adc52435564d917e791f63eda3b6a42acba1453a1c61ab7c15b0dac1678d5e54e1d739 modules-initfs
|
2022-07-26 05:11:04 +00:00
|
|
|
e2e417169345c86a5dd34ac0afac4b2b983a755f4c7ba5698c385a01f96b9bd2c3ace1ce5a0569c121675e8b87e88e1cf5c648e995d9c50cba66e52bbc83753c phoc.ini
|
|
|
|
"
|