# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-acer-picasso
pkgdesc="Acer Iconia Tab A500"
pkgver=2
pkgrel=5
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="
9287af0787239d47489121e3982a82c4b47f867d3ba5a13e3d9f47869ca1cfaefff0505ef475014647fc90d1efe0c8a0f4453fdd83a18d6c9e7dec5a3055f591  deviceinfo
ada484ae0b3fe08f2884920e45092ea269ae50085f178c27b61655914cea39fb979027d98dc88b3d474ffbdb7bd4417ec5ba08a6b6527fc1fcebc3ef9595360e  modules-initfs
"
