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

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="
afa9910fb13816df75c4b3f63318a9c594d0981e2e3f863041d0402d7e081203f580ca7219fb18c4b734cd20947a96a805394b23192377fab25dc7b23b93e4de  deviceinfo
7db8661fb9eaeb17196334d49b3843c750dac81ba631d3632431aad540ea0501bd633bfa88e00d8c2e7470af980181c0d32124135a68ef47c041b67710b5d4cf  kernel-cmdline.conf
"
