pmaports/device/community/device-lenovo-a6010/APKBUILD

52 lines
1.5 KiB
Text
Raw Normal View History

2020-11-21 19:00:53 +00:00
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jenneron <jenneron@protonmail.com>
# Co-Maintainer: Minecrell <minecrell@minecrell.net>
2020-11-21 19:00:53 +00:00
pkgname=device-lenovo-a6010
pkgdesc="Lenovo A6010"
pkgver=7
pkgrel=0
2020-11-21 19:00:53 +00:00
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"
2020-11-21 19:00:53 +00:00
makedepends="devicepkg-dev"
source="deviceinfo phoc.ini"
2020-11-21 19:00:53 +00:00
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-phosh
2020-11-21 19:00:53 +00:00
"
_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
2020-11-21 19:00:53 +00:00
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-lenovo-a6010-wcnss-nv
firmware-qcom-msm8916-venus"
2020-11-21 19:00:53 +00:00
mkdir "$subpkgdir"
}
phosh() {
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-phosh"
install -Dm644 "$srcdir"/phoc.ini \
"$subpkgdir"/etc/phosh/phoc.ini
}
sha512sums="
ab4d6460d45793c887b4e632b01e7a16a46b7aa3deee7d8b3c7bbc5d1397db54b492c212e15c49c588c1766a265882373324b3e861ce3e0258056a631220b4b5 deviceinfo
10d4ee62e5f7a9e4c368c460dd4c3ef282476e47d8cc40e4e3b83e971d04c493b801e5628ebdfe721f869e2fd68c521cf192cba1a973c8e03a61445534a28811 phoc.ini
"