# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-gprimeltexx
pkgdesc="Samsung Galaxy Grand Prime (G530FZ)"
pkgver=3
pkgrel=1
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
	modules-initfs
"
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-gprimeltexx-wcnss-nv"
	mkdir "$subpkgdir"
}

sha512sums="
48a862b04c38e743760fa08b2658f30d39435f63bae07e5c273afdd107d6b1d93e1d91e45061c3426d2119305ed53b1801ad38bf3dc81a9afd1730b81f325a83  deviceinfo
02b6d383149ba2ec3a31b206767be7ead31d9f0e7ee5cab11047000c53ccad387a118cbddb06093bca5cae3e82f884c02194de47b8e7a9c76102ac46506bb111  modules-initfs
"
