# Archived: Downstream port, only for testing. Use mainline port (motorola-ocean)!
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-ocean-downstream
pkgdesc="Motorola Moto G7 Power"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-motorola-ocean-downstream mkbootimg"
makedepends="devicepkg-dev"
source="deviceinfo kernel-cmdline.conf"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi, GPU, modem, and audio firmware"
	depends="firmware-motorola-ocean"
	mkdir "$subpkgdir"
}

sha512sums="
81f4b35d863fbbad7d3857b0d55db511bb2eb75c749c89c00f6692fcb8ad5337ef58e637170c554bed780a4a21eafd3baf5d1821218ebca3ae73aa7ba271405f  deviceinfo
bd4030f0441e913a6bfe623f848419b237e77cbc33aadd94553c9d53300ef41adba3767f6f4b1c9148064e3475e7a911fd9d3c0d21acec3b44c0682ce0b3eb8f  kernel-cmdline.conf
"
