2021-10-07 12:39:24 +00:00
|
|
|
# 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"
|
2021-10-19 08:28:29 +00:00
|
|
|
pkgver=4
|
2021-09-22 14:20:27 +00:00
|
|
|
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 soc-qcom-msm8916"
|
|
|
|
makedepends="devicepkg-dev"
|
2021-10-07 12:37:47 +00:00
|
|
|
source="deviceinfo rootston.ini"
|
2021-01-25 11:39:21 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-kernel-mainline-modem:kernel_mainline_modem
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
2021-10-07 12:37:47 +00:00
|
|
|
$pkgname-phosh
|
2021-01-25 11:39:21 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
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"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
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-a6000-wcnss-nv
|
|
|
|
firmware-qcom-msm8916-venus"
|
2021-01-25 11:39:21 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-10-07 12:37:47 +00:00
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-phosh"
|
|
|
|
install -Dm644 "$srcdir"/rootston.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/rootston.ini
|
|
|
|
}
|
|
|
|
|
2021-07-07 05:06:17 +00:00
|
|
|
sha512sums="
|
|
|
|
bc19a19e3f386f3c455de39808bb2b398b487a30b405cdfff7e118f7d5dbb528684abd609a50ce90ff4f9f239064fba462bb0bcfe1392bdc56fa8723e7863be0 deviceinfo
|
2021-10-07 12:37:47 +00:00
|
|
|
cd1402fcd7133c9364de8bd4e32f0d9e890f35d5d57fe92bd65736e23df1af428f091c9e5275fced111a6887ef562c46c5c19157b84a63955f8a1805b04d9951 rootston.ini
|
2021-07-07 05:06:17 +00:00
|
|
|
"
|