2020-11-21 19:00:53 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2021-10-07 12:40:11 +00:00
|
|
|
# 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"
|
2024-02-15 08:21:05 +00:00
|
|
|
pkgver=8
|
|
|
|
pkgrel=0
|
2020-11-21 19:00:53 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2021-10-24 12:48:45 +00:00
|
|
|
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"
|
2023-08-02 17:06:01 +00:00
|
|
|
source="deviceinfo modules-initfs phoc.ini"
|
2020-11-21 19:00:53 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
2021-10-07 12:37:55 +00:00
|
|
|
$pkgname-phosh
|
2020-11-21 19:00:53 +00:00
|
|
|
"
|
2021-10-24 12:48:45 +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() {
|
2021-10-19 08:28:29 +00:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2021-10-07 12:37:55 +00:00
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-phosh"
|
2022-04-03 09:04:48 +00:00
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
2021-10-07 12:37:55 +00:00
|
|
|
}
|
|
|
|
|
2021-07-07 05:06:17 +00:00
|
|
|
sha512sums="
|
2024-02-15 08:21:05 +00:00
|
|
|
49d72c36be47a98ae4474e5f21f3eb96a069d085639d3fbcaa738ee05ac85ab47b7f9d229185a1dbe338489d5d091164f5c904065bdfdb2703aa817b19ecf5ab deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
258464e46872cf221f7ac367766f9b8ead5d5dccbd71f3df5a5555127a42448906247ff2519d1750eec53b3ed37ae96c2409369d7cb8e2fffeb202a8f69bba53 modules-initfs
|
2022-05-05 14:50:55 +00:00
|
|
|
10d4ee62e5f7a9e4c368c460dd4c3ef282476e47d8cc40e4e3b83e971d04c493b801e5628ebdfe721f869e2fd68c521cf192cba1a973c8e03a61445534a28811 phoc.ini
|
2021-07-07 05:06:17 +00:00
|
|
|
"
|