# Reference: <https://postmarketos.org/devicepkg>
maintainer="Mighty17 <mightymb17@gmail.com>"
pkgname=device-samsung-espresso10
pkgdesc="Samsung Galaxy Tab 2 (10.1 inch)"
pkgver=5
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-postmarketos-omap mkbootimg"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="$pkgdesc (WiFi firmware)"
	depends="firmware-samsung-espresso"
	mkdir "$subpkgdir"
}

sha512sums="
7ac0322bd7ef159f3dcee55f754d5b0cf04f85b7a9d110e10b91150b963efb9d228630861e22594f0b5679e92db45239679df9065d5dda0385e83e98313a6613  deviceinfo
"
