pmaports/device/community/device-xiaomi-wt88047/APKBUILD
2022-01-22 13:40:33 +01:00

42 lines
1.2 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Minecrell <minecrell@minecrell.net>
pkgname=device-xiaomi-wt88047
pkgdesc="Xiaomi Redmi 2"
pkgver=7
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916
soc-qcom-msm8916 soc-qcom-msm8916-rproc"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
"
_pmb_select="soc-qcom-msm8916-rproc"
# Backwards compatibility for old kernel variant subpackages
replaces="$pkgname-kernel-mainline $pkgname-kernel-mainline-modem"
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
depends="firmware-qcom-adreno-a300 msm-firmware-loader
firmware-qcom-msm8916-wcnss firmware-xiaomi-wt88047-wcnss-nv
firmware-qcom-msm8916-venus"
mkdir "$subpkgdir"
}
sha512sums="
f6ea75ff0ad533dbd78e578cf6c77d0784a4629f69f66aff88743f20f1dec1013d0a456e755b7a361fa58f80630ba82f964c5092d5f5192fdc9548c31ebbe5aa deviceinfo
"