# Maintainer: Sireesh Kodali <scarface@disroot.org>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-potter
pkgdesc="Motorola Moto G5 Plus"
pkgver=0.3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-postmarketos-qcom-msm8953 mkbootimg"
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="
36556104aeaa3ad3f4a299bacf94317fcd0c95f753f935a4bddf29964b3314ca1fe24b11c606d111372d0bfb4690018fdf2f2c87e7590a4828dac9891933f1a4  deviceinfo
"
