pmaports/device/testing/device-xiaomi-scorpio/APKBUILD
Yassine Oudjana 0b12d68ae6
xiaomi-scorpio: switch to mainline kernel (MR 2063)
[ci:skip-build] already passed CI
2021-03-27 18:23:23 +01:00

53 lines
1.3 KiB
Text

# Maintainer: Yassine Oudjana (Tooniis) <y.oudjana@protonmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-scorpio
pkgdesc="Xiaomi Mi Note 2"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-postmarketos-qcom-msm8996
mkbootimg
postmarketos-base
soc-qcom-msm8996
soc-qcom-msm8996-ucm
"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-phosh"
source="
deviceinfo
rootston.ini
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="GPU/Modem/Venus/ADSP/WiFi/Bluetooth Firmware"
depends="
firmware-xiaomi-scorpio
linux-firmware-ath10k
linux-firmware-qca
soc-qcom-msm8996-nonfree-firmware
"
mkdir "$subpkgdir"
}
phosh() {
install_if="$pkgname=$pkgver-r$pkgrel phosh"
install -Dm644 "$srcdir"/rootston.ini \
"$subpkgdir"/etc/phosh/rootston.ini
}
sha512sums="554b9e3d0059afd0a60b57294b6587d0a624e92ff5ee51e79a116659ee75f79564bdc7736739199dd992ddb6b20418226cc0070dadae5ef6dffebf890c837431 deviceinfo
035f97e328ff9f976b082e66b97f76036cdee9825f3022471c7c5d371291cc4b5bd5c18196cd49f4cd9ad6390abe691b506de3b221e3c122433d5620e3b3c4c9 rootston.ini"