2022-08-26 12:11:10 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
# Maintainer: Bonfire <bonfire_@systemli.org>
|
|
|
|
# Co-Maintainer: Jenneron <jenneron@protonmail.com>
|
|
|
|
pkgname=device-google-krane
|
|
|
|
pkgdesc="Lenovo IdeaPad Duet Chromebook"
|
2022-10-10 19:33:44 +00:00
|
|
|
pkgver=2
|
2022-10-11 03:11:00 +00:00
|
|
|
pkgrel=1
|
2022-08-26 12:11:10 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
|
|
|
alsa-ucm-conf-google-kukui
|
|
|
|
depthcharge-tools
|
|
|
|
postmarketos-base
|
|
|
|
postmarketos-update-depthcharge-kernel
|
2022-10-11 03:11:00 +00:00
|
|
|
soc-mediatek-mt8183
|
2022-08-26 12:11:10 +00:00
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
modules-load.d/sound.conf
|
|
|
|
"
|
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-sku0:kernel_sku0
|
|
|
|
$pkgname-kernel-sku176:kernel_sku176
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/sound.conf \
|
|
|
|
"$pkgdir"/etc/modules-load.d/sound.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="WiFi/BT firmware"
|
|
|
|
depends="linux-firmware-ath10k linux-firmware-mediatek"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_sku0() {
|
|
|
|
pkgdesc="Google Krane Sku 0"
|
2022-10-09 12:10:59 +00:00
|
|
|
depends="linux-postmarketos-mediatek-mt8183"
|
2022-08-26 12:11:10 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_sku176() {
|
|
|
|
pkgdesc="Google Krane Sku 176"
|
2022-10-09 12:10:59 +00:00
|
|
|
depends="linux-postmarketos-mediatek-mt8183"
|
2022-08-26 12:11:10 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
9f54b26fbbb4184dc54727b767b7756ce98bd409e2fbf8566e3d484eadd37b0e99d6383099e29af7d14905756f88b4f14c45d0fe2fd138be37405745c7a8bb34 deviceinfo
|
|
|
|
bdf45461873b9754bc91d7f72afd6cef1aa6e523ead0a7816c8976ed98ff2d39b66c53dba2f2d92e36162c092360d1524845f27160f6af2bb010cd3259d5b7ed sound.conf
|
|
|
|
"
|