pkgname=firmware-t2m-flame
pkgver=1
pkgrel=4
pkgdesc="Mozilla Flame Firmware"
url="https://github.com/yuvadm/mozilla-flame-firmware"
arch="noarch"
license="proprietary"
options="!check !strip !archcheck"

# Source
_commit=503a4052a8bfdc3b4c06533f2d08fe4d6a923842
source="$pkgname-$_commit.tar.gz::$url/archive/${_commit}.tar.gz"

package() {
	cd "$srcdir/mozilla-flame-firmware-$_commit"
	for _i in *; do
		install -Dm644 "$_i" "$pkgdir/lib/firmware/postmarketos/$_i"
	done
}

sha512sums="865c6cb88d44c5305b088db4d244f9e178f2ddd7550c481aadeb6444fd853e004641b8900172ec326a11037aa170a658d32d9e62d0780ee50838e89983178384  firmware-t2m-flame-503a4052a8bfdc3b4c06533f2d08fe4d6a923842.tar.gz"
