# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-on7
pkgdesc="Samsung Galaxy On7 (2015)"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	postmarketos-base
	mkbootimg
	linux-postmarketos-qcom-msm8916
	soc-qcom-msm8916
	soc-qcom-msm8916-rproc
"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="
	$pkgname-nonfree-firmware:nonfree_firmware
"
_pmb_select="soc-qcom-msm8916-rproc"

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-on7lte-wcnss-nv"
	mkdir "$subpkgdir"
}


sha512sums="
475790b09d19ba2b033e2cd7b3e31ab4f02893973f7ec249b65260adc8065c46bf27d37cb991201d3aad145071e5dbd7e4a77588210c794f83d2dfd985adf3bc  deviceinfo
"
