# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-matisseve
pkgdesc="Samsung Galaxy Tab 4 10.1"
pkgver=6
pkgrel=0
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"
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-matisseve-wcnss-nv"
	mkdir "$subpkgdir"
}

sha512sums="
1e9222a9f0681ebf8ba2d6e3def49c9fbfb244bf384bfb302f38bb09ca71a49220682195c3dde711754da244dba6053abf37785f6c290b99ef2e269191ed4a12  deviceinfo
"
