# Maintainer: Sireesh Kodali <scarface@disroot.org>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-potter
pkgdesc="Motorola Moto G5 Plus"
pkgver=0.2
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-postmarketos-qcom-msm8953 mkbootimg mesa-dri-gallium"
makedepends="devicepkg-dev"
source="deviceinfo"

subpackages="
	$pkgname-nonfree-firmware:nonfree_firmware
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="GPU/Wi-Fi/Bluetooth/Audio/Video/Modem firmware"
	depends="firmware-motorola-potter"
	mkdir "$subpkgdir"
}

sha512sums="
5f29da7e002380a930c4d41b0935140001d6da54960fcd792387e0bad3f3233a3cb05661719412b4df08eefbad33dbfff3643b200baa6e2fa985cc1faaaa9ae4  deviceinfo
"
