# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-falcon
pkgdesc="Moto G (2013)"
pkgver=0.1
pkgrel=17
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-motorola-falcon mkbootimg 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="
0f5dcd207dddc60515a6ada744cefa9eab6ef975214d1fc46f5040ad6d1ac0eacafbeea60fadccb777a50c1d8a795faeec061ed21d9e72ee8701ab24be0e7482  deviceinfo
"
