# Reference: <https://postmarketos.org/devicepkg>
# See wiki: <https://wiki.postmarketos.org/wiki/Teclast_X80_Pro_(teclast-x80pro)> for installation information
# This package is also likely to work for most Intel based, EFI booting tablets (and laptops).
pkgname=device-teclast-x80pro
pkgdesc="Teclast X80Pro"
pkgver=1.0
pkgrel=11
url="https://postmarketos.org"
license="MIT"
arch="x86_64"
options="!check !archcheck"
depends="postmarketos-base linux-teclast-x80pro"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

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

sha512sums="
92207ea378967fa4e4a49e8d2a82faadc5ed5d2a74d3cf6568d57f99d496b50c540faf2f3b13c1dd155a8366b3e45357e64a38aa0ea37b7c7e3d781507e437ae  deviceinfo
"
