# Reference: # Maintainer: Minecrell pkgname=device-xiaomi-wt88047 pkgdesc="Xiaomi Redmi 2" pkgver=5 pkgrel=0 url="https://postmarketos.org" license="MIT" arch="aarch64" options="!check !archcheck" depends="postmarketos-base mkbootimg soc-qcom-msm8916" makedepends="devicepkg-dev" source="deviceinfo" subpackages=" $pkgname-kernel-mainline:kernel_mainline $pkgname-kernel-mainline-modem:kernel_mainline_modem $pkgname-nonfree-firmware:nonfree_firmware " build() { devicepkg_build $startdir $pkgname } package() { devicepkg_package $startdir $pkgname } kernel_mainline() { pkgdesc="Close to mainline kernel (no modem, audio routed directly)" depends="linux-postmarketos-qcom-msm8916" devicepkg_subpackage_kernel $startdir $pkgname $subpkgname } kernel_mainline_modem() { pkgdesc="Close to mainline kernel (non-free modem, audio routed through ADSP)" depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916-modem" replaces="kernel-mainline-modem-wt86047 kernel-mainline-modem-wt88047" for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done devicepkg_subpackage_kernel $startdir $pkgname $subpkgname } nonfree_firmware() { pkgdesc="GPU/WiFi/BT/Video(/Modem) firmware" depends="linux-firmware-qcom msm-firmware-loader firmware-qcom-msm8916-wcnss firmware-xiaomi-wt88047-wcnss-nv" replaces="nonfree-firmware-modem-wt86047 nonfree-firmware-modem-wt88047" for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done mkdir "$subpkgdir" } sha512sums=" ae3d5a33bcc544b89910e79347745bda3ca638261fab4ecebeb4026a2dab61684db8aee1c33468b8f2211c7761336d43547a2868f6db9f1a6a26fb961d7e4804 deviceinfo "