# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-ali
pkgdesc="Motorola Moto G6"
pkgver=0.2
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-ali msm-firmware-loader"
	mkdir "$subpkgdir"
}


sha512sums="
c37874a3f9a0ba08a213a8186275f7719f5b4f39bcb542424523860492646bc4d1d48a1c10f8d03950a1ee4fa655ee397c7b89ab62c085ed851b139767852e34  deviceinfo
"
