2022-12-10 10:18:13 +00:00
|
|
|
# Maintainer: David Wronek <w.david0@protonmail.com>
|
|
|
|
# Co-Maintainer: Danila Tikhonov <JIaxyga@protonmail.com>
|
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
|
|
|
|
pkgname=device-xiaomi-surya
|
|
|
|
pkgdesc="Xiaomi POCO X3 NFC"
|
2023-01-25 21:51:50 +00:00
|
|
|
pkgver=1.1
|
2023-09-19 16:16:35 +00:00
|
|
|
pkgrel=1
|
2022-12-10 10:18:13 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
|
|
|
linux-postmarketos-qcom-sm7150
|
|
|
|
make-dynpart-mappings
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
postmarketos-update-kernel
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
source="
|
|
|
|
deviceinfo
|
2023-01-25 21:51:50 +00:00
|
|
|
phoc.ini
|
2022-12-10 10:18:13 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Firmware for Modem, WiFi, Touchscreen, etc."
|
|
|
|
depends="
|
|
|
|
firmware-xiaomi-surya-adsp
|
|
|
|
firmware-xiaomi-surya-cdsp
|
|
|
|
firmware-xiaomi-surya-ipa
|
|
|
|
firmware-xiaomi-surya-modem
|
|
|
|
firmware-xiaomi-surya-touchscreen
|
|
|
|
firmware-xiaomi-surya-wlan
|
|
|
|
linux-firmware-ath10k
|
|
|
|
linux-firmware-qca
|
|
|
|
msm-modem
|
|
|
|
msm-modem-uim-selection
|
|
|
|
pd-mapper
|
|
|
|
tqftpserv
|
|
|
|
"
|
|
|
|
install="$subpkgname.post-install"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2023-01-25 21:51:50 +00:00
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-phosh"
|
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
-t "$subpkgdir"/etc/phosh
|
|
|
|
}
|
|
|
|
|
2022-12-10 10:18:13 +00:00
|
|
|
sha512sums="
|
|
|
|
8fb0c1f3dbad1003b108bd7748a839f002c9c8caa3125148fb8818f5df540da81615428cbc5dfc28738d38460f3f1b4ec977c9f194447c0bc508bcd6a42f4276 deviceinfo
|
2023-01-25 21:51:50 +00:00
|
|
|
9b306b47e8fcbf3bbc1401bb183fe0a1a1c59ac4afdabb2cf7f5c9e39f478841f74401a29df3572466efa5624a57809ee5e46d2342c5b0e42d86e2460b641d76 phoc.ini
|
2022-12-10 10:18:13 +00:00
|
|
|
"
|