pkgname=firmware-motorola-ali
pkgver=1
pkgrel=1
pkgdesc="Firmware for Motorola Moto G6"
url="https://github.com/julianbraha/firmware-motorola-ali"
arch="aarch64"
license="proprietary"
_repository="firmware-blobs"
_commit="153ba76124497fb7ce22d87a90149a15bcf67942"
source="$pkgname-$_commit.tar.gz::https://github.com/moto-g6-mainlining/firmware-blobs/archive/$_commit.tar.gz"
options="!strip !check !archcheck !spdx !tracedeps"
builddir="$srcdir/$_repository-$_commit"

_fwdir="/lib/firmware/postmarketos"

package() {
	# GPU Firmware files
	install -Dm644 a506_zap.b02 -t "$pkgdir/$_fwdir"
	install -Dm644 a506_zap.mdt -t "$pkgdir/$_fwdir"

	# WLAN Firmware
	install -Dm644 wlan/prima/WCNSS_qcom_wlan_nv.bin -t "$pkgdir/$_fwdir/wlan/prima"
}

sha512sums="
269ac182806e9128557ac614142bfd6a2feab2cc3d2555268064df7ad1880de0d5e85b781a34ca57693d9c32ffe7d31da7fd34f9fd6364bc2b7cc2fdb90edc80  firmware-motorola-ali-153ba76124497fb7ce22d87a90149a15bcf67942.tar.gz
"
