# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-acer-picasso
pkgdesc="Acer Iconia Tab A500"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-postmarketos-grate mkbootimg xf86-video-opentegra"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"
subpackages="
	$pkgname-nonfree-firmware:nonfree_firmware
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Acer Iconia Tab A500 WiFi & BT firmware"
	depends="firmware-acer-picasso"
	mkdir "$subpkgdir"
}

sha512sums="
2949584e9bef3daa5e31d3fa54a3e375be985730f351376035e85706014c46a7394f2671c98fadbe72b91f90c49f2e0544d7f241329be9f43eb316dc10cb0282  deviceinfo
ada484ae0b3fe08f2884920e45092ea269ae50085f178c27b61655914cea39fb979027d98dc88b3d474ffbdb7bd4417ec5ba08a6b6527fc1fcebc3ef9595360e  modules-initfs
"
