# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-asus-duma
pkgdesc="ASUS MeMO Pad FHD 10 (ME302KL)"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armhf"
options="!check !archcheck"
depends="postmarketos-base linux-asus-duma mkbootimg msm-fb-refresher"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo kernel-cmdline.conf"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-asus-duma"
	mkdir "$subpkgdir"
}

sha512sums="
dc9b4926f961ccb4947c30b8854b0dec538157901ed4c797b2a5faec25b48d2700b4b1e00eaa461e4dae92a6f68b0ee6c9493a125ecd1088fc993299a53c020b  deviceinfo
d0c9e9d5aa8ed8ee2b3451b26480e2d736121edcc08a452fbf5963d98ebc908ef5bd1084ee97a77705e134d44585ec4596adf2ae4fa97b7e5299e6d8e3d21a28  kernel-cmdline.conf
"
