# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-lg-bullhead
pkgdesc="Google Nexus 5X"
pkgver=0.1
pkgrel=13
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-lg-bullhead mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

nonfree_firmware() {
	pkgdesc="Proprietary WiFi, Modem, GPU and sensors firmware"
	depends="firmware-lg-bullhead"
	mkdir "$subpkgdir"
}


build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

sha512sums="c5151aabd87be093eb60c0969f891fcef8196a42c8813b704a90ac5d26f2d1e7202df5cf8bbae3fd997c93a5379a3a44eb53d53a4210d153866d9d79873ea5a7  deviceinfo"
