# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-falcon
pkgdesc="Moto G (2013)"
pkgver=0.1
pkgrel=13
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-motorola-falcon mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-motorola-falcon"
	mkdir "$subpkgdir"
}

sha512sums="7a6489bd0192fd9f2f9d0b802d28ee5804add24d5d71a72f4ddb30fe35b86dc823f76f7207a3f22b7bae089cfb541415e9d4c4f43cf31183984cb7fd3f9e2405  deviceinfo"
