# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Antony J.R. <antonyjr@pm.me>
pkgname=device-asus-z00l
pkgdesc="ASUS Zenfone 2 Laser (720p)"
pkgver=5
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916
	 soc-qcom-msm8916 soc-qcom-msm8916-rproc"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="
	$pkgname-nonfree-firmware:nonfree_firmware
"
_pmb_select="soc-qcom-msm8916-rproc"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
	depends="firmware-qcom-adreno-a300 msm-firmware-loader firmware-asus-z00l-wcnss-nv"
	mkdir "$subpkgdir"
}

sha512sums="
f3978dc7eb9f9ea897185e799a5e4391da00986e2b09d6009fbf3ca9ba419859d9e3b7108744f0548d8e7a9f744273844231c8b20dd87190c89b573f63544828  deviceinfo
"
