# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-milletwifi
pkgdesc="Samsung Galaxy Tab 4 8.0 Wi-Fi"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="linux-postmarketos-qcom-msm8226 mkbootimg postmarketos-base"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
	depends="firmware-samsung-milletwifi-wcnss-nv msm-firmware-loader msm-modem"
	mkdir "$subpkgdir"
}

sha512sums="
2eae9739d0a4278189e045aea21b2ad43a5b6d5f9c2fc16142063ba875e22d290b8b1dde5ad4f4a5d011ec3ef68b13646f8a5694db3c5cb7da3c9edd119d338e  deviceinfo
566fbcbd958c465fa546068095c51678b6635a247dd7ef1d6c7f4c5fd527a21f41ed4daf8f63a1342433f150d3437b102e523bfa63d17ff64a0ebe48eb7b9ae6  modules-initfs
"
