# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-acer-t01
pkgdesc="Acer Liquid Z330"
pkgver=2
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	linux-postmarketos-qcom-msm8916
	mkbootimg
	postmarketos-base
	soc-qcom-msm8909
	soc-qcom-msm8916-rproc
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"
_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-acer-t01-wcnss-nv
	"
	mkdir "$subpkgdir"
}

sha512sums="
1009145f30d70d46207a6c09571fd6d28bb909fe1d28d14c6bdcbbe45d2ee024c74aa1c083794f4d53c8616a08579d55e7a242c8a27fcc647f60fa98eae02692  deviceinfo
a0e3f4ca9dd9bb171b021ee07a2aaf3886b3d6376bb38298128b0bf0325a2305e48ba42a37105b13f7f469fb98d8326c8ce95b6259f8974a4f04b09acb3af7f2  modules-initfs
"
