# Maintainer: Jean-Etienne Tremblay <jean.etienne.tremblay@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-channel
pkgdesc="Motorola G7 Play"
pkgver=0.1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
options="!check !archcheck"
depends="postmarketos-base linux-motorola-channel mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-motorola-channel-wcnss wcnss-wlan"
	mkdir "$subpkgdir"
}

sha512sums="35f0d4a0cf2bb7b19ca64b0a25f003ee6521fc411850307de332b99ac3e78b77f1cb3eb216fc025e5c3ef9b9f84505bfe513976cae792fbbec7deb9fa117f85e  deviceinfo"
