# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-n1awifi
pkgdesc="Samsung Galaxy Note 10.1 (2014 edition)"
pkgver=0.1
pkgrel=3
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	linux-samsung-n1awifi
	mkbootimg
	postmarketos-base
	msm-fb-refresher
"
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="
e94ab4e08ffdfc9217f8ee4da4d66f83599e0b7b3b600f4d85cffc705da902db8c6565e82b85c71a247e7b789945e53d3d4a5c265f0d638f97d6a24d98221bf5  deviceinfo
"
