# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-gtelwifiue
pkgdesc="Samsung Galaxy Tab E 9.6 (SM-T560NU)"
pkgver=2
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916 soc-qcom-msm8916"
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-qcom-adreno-a300 msm-firmware-loader firmware-samsung-gtelwifiue-wcnss-nv"
	mkdir "$subpkgdir"
}

sha512sums="
9fb68f52d7f0962ee03da16c3cf206a261ee9f21887f207913fc1dcb12e2a3361b982f6ebc439fe71ce78890fe6a94da40dcbff341da183efa5a49df060ee754  deviceinfo
8e075951dc7fe3f05a4a0a1c33fd1e5630bc20d800f3c2de578853e6249ebf4fc8d31d5752a8abb707df3f3c9f9c18adaa89a1918adf9d3a90a38364d9b93b3c  modules-initfs
"
