# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-n1awifi
pkgdesc="Samsung Galaxy Note 10.1 (2014 edition)"
pkgver=1
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	linux-samsung-n1awifi
	mkbootimg
	postmarketos-base
	postmarketos-base-downstream
	msm-fb-refresher
	postmarketos-initramfs-minimal
"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Non-free firmware for the Samsung Galaxy Note 10.1 (2014 edition)"
	depends="firmware-samsung-n1awifi"
	mkdir "$subpkgdir"
}

sha512sums="
3a825af22108791365dfd614fd429277b2a6f71e599b91b2f17efec1b1f7bbea515cfd3efab377b17294f4a9f35ef030d89f8dc30ef66a3c2dbefca11f653404  deviceinfo
"