# Reference: <https://postmarketos.org/devicepkg>
# aintainer: Jenneron <jenneron@protonmail.com>
pkgname=device-google-makomo
pkgdesc="Lenovo 100e Chromebook 2nd Gen MTK 2"
pkgver=2
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	alsa-ucm-conf-google-kukui
	depthcharge-tools
	linux-postmarketos-mediatek-mt8183>=6.1.28-r0
	postmarketos-base
	postmarketos-update-depthcharge-kernel
	soc-mediatek-mt8183
"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="WiFi/BT firmware"
	depends="linux-firmware-ath10k linux-firmware-qca linux-firmware-mediatek"
	mkdir "$subpkgdir"
}

sha512sums="
3ed0183b0a6f6c840af39a99945061bcc3c97d51610db94ae1cde22d3e11cd2ca90e296726ed6b9bafd118ebb5392e61be0f14943cea58fc398d818cf2803180  deviceinfo
"
