# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-v1awifi
pkgdesc="Samsung Galaxy Note Pro 12.2 WiFi"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
makedepends="devicepkg-dev"
depends="
	postmarketos-base
	postmarketos-base-downstream
	postmarketos-base-downstream-disable-udev-v4l
	linux-samsung-v1awifi
	mkbootimg
	msm-fb-refresher
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Non-free firmware for the Samsung Galaxy Note Pro 12.2 WiFi"
	depends="firmware-samsung-v1awifi"
	mkdir "$subpkgdir"
}

sha512sums="
603ae4a3fa0d266fcf43796095a501b9f08dff87692ed05fbd55802bab88ac1db78350d06c078545822a319568ce2a13cb792703c66a88b002dc11fdaa37dd0a  deviceinfo
"
