2020-04-13 19:56:53 +00:00
# Maintainer: Venji10 <bennisteinir@gmail.com>
2021-02-17 10:10:33 +00:00
# Co-Maintainer: Joel Selvaraj <jo@jsfamily.in>
2020-04-13 19:56:53 +00:00
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-beryllium
pkgdesc="Xiaomi Poco F1"
2021-02-17 10:10:33 +00:00
pkgver=2
2021-04-11 15:59:52 +00:00
pkgrel=1
2020-04-13 19:56:53 +00:00
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
2021-02-17 10:10:33 +00:00
depends="postmarketos-base mkbootimg soc-qcom-sdm845 soc-qcom-sdm845-ucm"
2020-04-13 19:56:53 +00:00
makedepends="devicepkg-dev"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
2021-02-17 10:10:33 +00:00
$pkgname-kernel-tianma:kernel_tianma
$pkgname-phosh
2020-04-13 19:56:53 +00:00
"
2021-02-17 10:10:33 +00:00
source="
deviceinfo
rootston.ini
xiaomi,beryllium.json
"
2020-04-13 19:56:53 +00:00
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="GPU, venus, modem firmware"
depends="firmware-xiaomi-beryllium"
mkdir "$subpkgdir"
}
2021-02-17 10:10:33 +00:00
kernel_tianma() {
pkgdesc="Close to mainline; Tianma Display, Novatek Touchscreen, Audio, Wifi and USB works (see device page in wiki for details) (GPU firmware needed)"
depends="linux-postmarketos-qcom-sdm845"
2020-04-13 19:56:53 +00:00
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
2021-02-17 10:10:33 +00:00
phosh() {
install_if="$pkgname=$pkgver-r$pkgrel phosh"
install -Dm644 "$srcdir"/rootston.ini \
"$subpkgdir"/etc/phosh/rootston.ini
install -Dm644 "$srcdir"/xiaomi,beryllium.json \
"$subpkgdir"/usr/share/feedbackd/themes/xiaomi,beryllium.json
2020-04-13 19:56:53 +00:00
}
2021-02-17 10:10:33 +00:00
sha512sums="3d4587810311a5422577daddfcd41aad4d29e011ffb13d3d3d7cde6e4f8eacd2458470818cca8e196fd7f9a44670cffeddde085cda74688fb4d3a7418114449e deviceinfo
e0bbe6210198ec37a0f18fb7dec5dead4ad41693ad5b3c20731e68d4f9d8fdff393dcbd110e87564030f1326e12da8af58c020e9bc14eb9ca2c54224b962df7e rootston.ini
db78af5be2a08109962fa2511d6e84efe9a425e1d45c7e0e75bf0be383cfc1c5fca5d79f3d7bd2f146e8a62460c88b214819ad522316c0c2e08783a80d8ceb05 xiaomi,beryllium.json"