# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Timothy Valldeperas <tvall43@gmail.com>
# Co-Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=device-google-veyron-jerry
pkgdesc="Google Veyron Jerry Chromebook"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	alsa-ucm-conf>=1.2.7.1-r0
	depthcharge-tools
	linux-google-veyron
	postmarketos-base>=25-r1
	postmarketos-update-depthcharge-kernel>=2-r0
"
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 firmware"
	depends="linux-firmware-mrvl"
	mkdir "$subpkgdir"
}

sha512sums="
29aae9a3b54272c948db2d8de2a31938268ea20127895391cf6a3d61d34b546dccf238aa84bd0dc78984e9fc89f34c8e59a5aa4f8f77ab59d08a5e68f2c7f092  deviceinfo
"
