# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=device-google-druwl
pkgdesc="AOpen Chromebook Commercial Tab / CTL Chromebook Tablet Tx1"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	alsa-ucm-conf-google-gru
	depthcharge-tools
	linux-postmarketos-rockchip
	postmarketos-base
	postmarketos-update-depthcharge-kernel
"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="WiFi/BT and DP firmware"
	depends="linux-firmware-ath10k linux-firmware-rockchip"
	mkdir "$subpkgdir"
}

sha512sums="
edae78411115721c73f8f1e30b2b5420e51d7e5af06621f4c74696e721cc9aa0c14896b8521721dae59a9e364916c5cf5bfb747db590c333936613692fd9a9fd  deviceinfo
"
