2022-01-01 09:00:00 +00:00
|
|
|
# Maintainer: Danila Tikhonov (JIaxyga) <JIaxyga@protonmail.com>
|
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
|
|
|
|
pkgname=device-xiaomi-tissot
|
|
|
|
pkgdesc="Xiaomi Mi A1"
|
2023-05-06 14:20:13 +00:00
|
|
|
pkgver=3
|
2023-04-22 14:12:02 +00:00
|
|
|
pkgrel=0
|
2022-01-01 09:00:00 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="postmarketos-base mkbootimg soc-qcom-msm8916 linux-postmarketos-qcom-msm8953"
|
2022-01-01 09:00:00 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2022-04-03 09:04:48 +00:00
|
|
|
source="deviceinfo phoc.ini"
|
2022-01-01 09:00:00 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-modem $pkgname-phosh"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Modem, WiFi, BT, ADSP, Venus and GPU Firmware, also needed for osk-sdl"
|
|
|
|
depends="firmware-xiaomi-tissot"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
modem() {
|
|
|
|
depends="qrtr rmtfs rmtfs-openrc msm-modem-uim-selection"
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel $pkgname-nonfree-firmware"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel phosh"
|
2022-04-03 09:04:48 +00:00
|
|
|
install -Dm644 "$srcdir"/phoc.ini -t \
|
2022-01-01 09:00:00 +00:00
|
|
|
"$subpkgdir"/etc/phosh
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-05-06 14:20:13 +00:00
|
|
|
c2046a426a7268f777ecaa1add81727170da80bc027ad2a5ab5eec9a134dee91b0f6e64c2f38747f153676e991b7332e8b0c95daed961435c9e8ed8acb1d09d6 deviceinfo
|
2022-04-03 09:04:48 +00:00
|
|
|
38409d4ce48db4624539dbfd695d3c6e1596a29fd7c3004a41368b28cba646495d05360420ad728f82c63d6ddeeca71d09944df06ebaca120aedd9cc2b436eb3 phoc.ini
|
2022-01-01 09:00:00 +00:00
|
|
|
"
|