pmaports/device/community/device-lenovo-a6000/APKBUILD

52 lines
1.6 KiB
Text
Raw Normal View History

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jenneron <jenneron@protonmail.com>
# Co-Maintainer: Minecrell <minecrell@minecrell.net>
2021-01-25 11:39:21 +00:00
pkgname=device-lenovo-a6000
pkgdesc="Lenovo A6000"
pkgver=5
pkgrel=0
2021-01-25 11:39:21 +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"
2021-01-25 11:39:21 +00:00
makedepends="devicepkg-dev"
source="deviceinfo rootston.ini"
2021-01-25 11:39:21 +00:00
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-phosh
2021-01-25 11:39:21 +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
2021-01-25 11:39:21 +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-a6000-wcnss-nv
firmware-qcom-msm8916-venus"
2021-01-25 11:39:21 +00:00
mkdir "$subpkgdir"
}
phosh() {
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-phosh"
install -Dm644 "$srcdir"/rootston.ini \
"$subpkgdir"/etc/phosh/rootston.ini
}
sha512sums="
c860b43edd7dcc2b10a7ee1dc8b2b7e225c469db6f7d45231b78e4e8a76bbe242b65e40488dcae2503ecdc407844eee50964db7b8d3a392a8f3f064afe690b99 deviceinfo
cd1402fcd7133c9364de8bd4e32f0d9e890f35d5d57fe92bd65736e23df1af428f091c9e5275fced111a6887ef562c46c5c19157b84a63955f8a1805b04d9951 rootston.ini
"